Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3303160
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:55:41+00:00 2026-05-17T20:55:41+00:00

anybody can explain me epsilon what is this term although i did not use

  • 0

anybody can explain me epsilon what is this term although i did not use in my header file.
like

Right (const lPoint& a, const lPoint& b, const lPoint& c, double epsilon)
{
#if _NOT_USED_EPSILON
    return (( (a.x_ * b.y_) - (a.y_ * b.x_) +
              (a.y_ * c.x_) - (a.x_ * c.y_) +
              (b.x_ * c.y_) - (c.x_ * b.y_) ) < 0);
#else
/*  return (( (a.x_ * b.y_) - (a.y_ * b.x_) +
              (a.y_ * c.x_) - (a.x_ * c.y_) +
              (b.x_ * c.y_) - (c.x_ * b.y_) ) < -SPATIAL_EPSILON);*/
    if( epsilon == -1 )
        return (b.x_-a.x_)*(c.y_-a.y_)-(c.x_-a.x_)*(b.y_-a.y_) < -SPATIAL_AREA_EPSILON;
    else
        return (b.x_-a.x_)*(c.y_-a.y_)-(c.x_-a.x_)*(b.y_-a.y_) < -epsilon;
#endif
}

here i did not used epsilon in my file than wy we are saying that #if _not_used_epsilon than return this …. while my epsilon by default is 0 because its mot initialized. but its use din if condition and her const is used because it will not change the value of arguemnt. right!

and this #if will not read by complier inside the function i want to ask that #directory are read by coompiler or not.. i am not getting #directories.. why we use it we can sue simple if condition with variables as we use in function,, so why #directory inside the main.. who will deal with it compiler..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:55:42+00:00Added an answer on May 17, 2026 at 8:55 pm

    This code is simple. What it does is this?

    If the preprocessor symbol _NOT_USED_EPSILON is defined (through make file, command line) etc, then the expression is checked if it is less than 0.

    In some cases (since double arithmetic looses precision), one may check the value of the expression if it is significantly close to 0.

    If such precision arithmetic is required then the make file would undefine the preprocessor symbols _NOT_USED_EPSILON.

    In such a case, the expression will be checked with the value of the last argument to your function (epsilon).

    Note that _NOT_USED_EPSILON is not read by the compiler but is a preprocessor directive.

    From the OP, the code below is compiled only when _NOT_USED_EPSILON is defined, else it is not.

    return (( (a.x_ * b.y_) - (a.y_ * b.x_) + 
              (a.y_ * c.x_) - (a.x_ * c.y_) + 
              (b.x_ * c.y_) - (c.x_ * b.y_) ) < 0); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anybody explain this why its happening int i=0; i=i++; i=i++; i=i++; System.out.println(i); it
Can anybody explain me this statement! pin.sin_addr.s_addr = ((struct in_addr *)(hp->h_addr))->s_addr;
can anybody explain why the following bash code involving compound operators is not behaving
Can anybody explain me this piece of code? /* Pad to size of `struct
Can anybody explain how this line works? return $y < 0 ? - pip2
Can anybody explain what this error means: The .Net Framing mode being used is
can anybody explain me why this query takes 13 seconds: SELECT Table1.Location, Table2.SID, Table2.CID,
Can Anybody explain why this happen? This is my code in a plugin called
Can anybody explain me why an xsd file has 2 sub files (.cs and
I saw someone's code in View/car.html.haml like followows: %body =yield Can anybody explain me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.