17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
20 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTC_epsilon extension included")
33 template<length_t L,
typename T, qualifier P>
34 GLM_FUNC_DECL vec<L, bool, P>
epsilonEqual(vec<L, T, P>
const& x, vec<L, T, P>
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 P>
48 GLM_FUNC_DECL vec<L, bool, P>
epsilonNotEqual(vec<L, T, P>
const& x, vec<L, T, P>
const& y, T
const &
epsilon);
54 template<
typename genType>
60 #include "epsilon.inl"
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.
GLM_FUNC_DECL bool epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)
Returns the component-wise comparison of |x - y| >= epsilon.