![]() |
0.9.9 API documentation
|
GLM_EXT_scalar_relational More...
Go to the source code of this file.
Functions | |
template<typename genType > | |
GLM_FUNC_DECL GLM_CONSTEXPR bool | equal (genType const &x, genType const &y, genType const &epsilon) |
Returns the component-wise comparison of |x - y| < epsilon. More... | |
template<typename genType > | |
GLM_FUNC_DECL GLM_CONSTEXPR bool | equal (genType const &x, genType const &y, int ULPs) |
Returns the component-wise comparison between two scalars in term of ULPs. More... | |
template<typename genType > | |
GLM_FUNC_DECL GLM_CONSTEXPR bool | notEqual (genType const &x, genType const &y, genType const &epsilon) |
Returns the component-wise comparison of |x - y| >= epsilon. More... | |
template<typename genType > | |
GLM_FUNC_DECL GLM_CONSTEXPR bool | notEqual (genType const &x, genType const &y, int ULPs) |
Returns the component-wise comparison between two scalars in term of ULPs. More... | |
Definition in file scalar_relational.hpp.
GLM_FUNC_DECL GLM_CONSTEXPR bool equal | ( | genType const & | x, |
genType const & | y, | ||
genType const & | epsilon | ||
) |
Returns the component-wise comparison of |x - y| < epsilon.
True if this expression is satisfied.
genType | Floating-point or integer scalar types |
References glm::equal().
GLM_FUNC_DECL GLM_CONSTEXPR bool equal | ( | genType const & | x, |
genType const & | y, | ||
int | ULPs | ||
) |
Returns the component-wise comparison between two scalars in term of ULPs.
True if this expression is satisfied.
x | First operand. |
y | Second operand. |
ULPs | Maximum difference in ULPs between the two operators to consider them equal. |
genType | Floating-point or integer scalar types |
References glm::equal().
GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual | ( | genType const & | x, |
genType const & | y, | ||
genType const & | epsilon | ||
) |
Returns the component-wise comparison of |x - y| >= epsilon.
True if this expression is not satisfied.
genType | Floating-point or integer scalar types |
References glm::notEqual().
GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual | ( | genType const & | x, |
genType const & | y, | ||
int | ULPs | ||
) |
Returns the component-wise comparison between two scalars in term of ULPs.
True if this expression is not satisfied.
x | First operand. |
y | Second operand. |
ULPs | Maximum difference in ULPs between the two operators to consider them not equal. |
genType | Floating-point or integer scalar types |
References glm::notEqual().