What does EPS mean in C?

c eps
John picture John · Mar 9, 2009 · Viewed 26.5k times · Source

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/

Answer

Jon Skeet picture Jon Skeet · Mar 9, 2009

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.