Functions | |
double | AbsoluteValue (double a) |
Returns the absolute value of the value a. More... | |
double | ___safe_fpt_division (const double f1, const double f2) |
Performs a safe floating point division f1/f2. More... | |
bool | fpointequals (const double a, const double b, double TOL=1e-9) |
Checks if two floating numbers are "nearly" equal. More... | |
|
inline |
Performs a safe floating point division f1/f2.
f1 | numerator |
f2 | denominator |
Definition at line 37 of file FloatingPointComparisson.hpp.
Referenced by fpointequals().
|
inline |
Returns the absolute value of the value a.
a | the value whose absolute value is queried |
Definition at line 23 of file FloatingPointComparisson.hpp.
Referenced by fpointequals().
|
inline |
Checks if two floating numbers are "nearly" equal.
a | first floating number to check |
b | second floating number to check |
Definition at line 64 of file FloatingPointComparisson.hpp.
References ___safe_fpt_division(), AbsoluteValue(), and GeoPrim::TOL.
Referenced by BoundingBox::hasPoint().