Function swri_math_util::IsNear

Function Documentation

bool swri_math_util::IsNear(double v1, double v2, double epsilon)

Check if v1 is within +/- epsilon of v2

Parameters:
  • v1[in] The first value.

  • v2[in] The second value.

  • epsilon[in] The tolerance.

Returns:

True if v1 is near v2.