Review and update preprocessor macro calls, NEAR_ZERO() and NEAR_EQUAL()
completed by: javamonn
BRL-CAD's math library provides two macros, NEAR_ZERO() and NEAR_EQUAL() that test whether a number is approximately "0" or whether two numbers are approximately equal to each other. The numbers are "approximately" zero or equal based on a specified tolerance value. We recently added two new macros that simplify caller use, but they need to be propagated throughout the code.
This task involves going through and reviewing all calls to NEAR_ZERO and NEAR_EQUAL where the specified tolerance is SMALL_FASTF. The only caveat is that IF there is a comment nearby that mentions the tolerance, you're going to leave the call alone. You should only updated the ones that are not documented in some fashion.
Update all undocumented calls to our NEAR_ZERO(..., SMALL_FASTF) with calls to ZERO().
Update all undocumented calls to our NEAR_EQUAL(..., SMALL_FASTF) with calls to EQUAL().