4#include "../detail/type_float.hpp"
8 template<
typename genType>
9 GLM_FUNC_QUALIFIER GLM_CONSTEXPR
bool equal(genType
const& x, genType
const& y, genType
const&
epsilon)
14 template<
typename genType>
15 GLM_FUNC_QUALIFIER GLM_CONSTEXPR
bool notEqual(genType
const& x, genType
const& y, genType
const&
epsilon)
20 template<
typename genType>
21 GLM_FUNC_QUALIFIER GLM_CONSTEXPR
bool equal(genType
const& x, genType
const& y,
int MaxULPs)
27 if(a.negative() != b.negative())
32 return DiffULPs <= MaxULPs;
35 template<
typename genType>
36 GLM_FUNC_QUALIFIER GLM_CONSTEXPR
bool notEqual(genType
const& x, genType
const& y,
int ULPs)
38 return !
equal(x, y, ULPs);
GLM_FUNC_DECL GLM_CONSTEXPR genType abs(genType x)
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec< L, bool, Q > notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Definition func_vector_relational.inl:49
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec< L, bool, Q > equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
Definition func_vector_relational.inl:40
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
Definition scalar_constants.inl:6
Core features
Definition common.hpp:21
Definition type_float.hpp:15