Search code examples
ceps

What does EPS mean in C?


I have the following code snippet:

if (ABS(p43.x)  < EPS && ABS(p43.y)  < EPS && ABS(p43.z)  < EPS) return(FALSE);

Which I'm trying to convert to C#. What does "EPS" mean?

This code is from http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline3d/


Solution

  • It's going to be some form of epsilon to determine whether the number is "small enough to be insignificant". The exact value looks like it's being #defined somewhere in this case.