17 #include "../detail/setup.hpp" 18 #include "../detail/qualifier.hpp" 20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 21 # pragma message("GLM: GLM_GTC_epsilon extension included") 33 template<length_t L,
typename T, qualifier Q>
34 GLM_FUNC_DECL vec<L, bool, Q>
epsilonEqual(vec<L, T, Q>
const& x, vec<L, T, Q>
const& y, T
const&
epsilon);
40 template<
typename genType>
41 GLM_FUNC_DECL
bool epsilonEqual(genType
const& x, genType
const& y, genType
const&
epsilon);
47 template<length_t L,
typename T, qualifier Q>
48 GLM_FUNC_DECL vec<L, bool, Q>
epsilonNotEqual(vec<L, T, Q>
const& x, vec<L, T, Q>
const& y, T
const&
epsilon);
54 template<
typename genType>
60 #include "epsilon.inl" GLM_FUNC_DECL bool epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)
Returns the component-wise comparison of |x - y| >= epsilon.
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL bool epsilonEqual(genType const &x, genType const &y, genType const &epsilon)
Returns the component-wise comparison of |x - y| < epsilon.