SA_Maths
Sapphire Suite's C++ Maths Library
|
Equals method implementation. More...
#include <limits>
Go to the source code of this file.
Functions | |
template<typename T , typename EpsT = T> | |
constexpr bool | SA::Maths::Equals (const T &_lhs, const T &_rhs, EpsT _epsilon=std::numeric_limits< EpsT >::epsilon()) |
Compare two T objects. | |
template<typename T , typename EpsT = T> | |
constexpr bool | SA::Maths::Equals0 (T _in, EpsT _epsilon=std::numeric_limits< EpsT >::epsilon()) noexcept |
Compare one T to T(0). | |
template<typename T , typename EpsT = T> | |
constexpr bool | SA::Maths::Equals1 (T _in, EpsT _epsilon=std::numeric_limits< EpsT >::epsilon()) noexcept |
Compare one T to T(1). | |
Equals method implementation.
|
constexpr |
Compare two T objects.
T | Type of operands. |
EpsT | Type of epsilon. |
[in] | _lhs | Left hand side operand to compare. |
[in] | _rhs | Right hand side operand to compare. |
[in] | _epsilon | Epsilon value for threshold compare. |
|
constexprnoexcept |
Compare one T to T(0).
T | Type of input. |
EpsT | Type of epsilon. |
[in] | _in | Operand to compare to 0. |
[in] | _epsilon | Allowed threshold to accept equality. |
|
constexprnoexcept |
Compare one T to T(1).
T | Type of input. |
EpsT | Type of epsilon. |
[in] | _in | Operand to compare to 1. |
[in] | _epsilon | Allowed threshold to accept equality. |