Template Function TRAP::Math::Equal(T, T, T)#

Function Documentation#

template<typename T>
constexpr bool TRAP::Math::Equal(T x, T y, T epsilon)#

Perform a equal-to comparison of two values taking epsilon into account.

Parameters:
  • x – Specifies the first value to be used in the comparison operation.

  • y – Specifies the second value to be used in the comparison operation.

  • epsilon

Returns:

Comparison of |x - y| < epsilon. True if this expression is satisfied.