Comparison functions for a user defined epsilon values. More...
Functions | |
template<typename genTypeT , typename genTypeU > | |
bool | equalEpsilon (genTypeT const &x, genTypeT const &y, genTypeU const &epsilon) |
template<typename genTypeT , typename genTypeU > | |
bool | notEqualEpsilon (genTypeT const &x, genTypeT const &y, genTypeU const &epsilon) |
Comparison functions for a user defined epsilon values.
<glm/gtx/epsilon.hpp> need to be included to use these functionalities.
bool glm::gtx::epsilon::equalEpsilon | ( | genTypeT const & | x, |
genTypeT const & | y, | ||
genTypeU const & | epsilon | ||
) |
Returns the component-wise compare of |x - y| < epsilon.
From GLM_GTX_epsilon extension.
bool glm::gtx::epsilon::notEqualEpsilon | ( | genTypeT const & | x, |
genTypeT const & | y, | ||
genTypeU const & | epsilon | ||
) |
Returns the component-wise compare of |x - y| >= epsilon.
From GLM_GTX_epsilon extension.