40 #ifndef GLM_GTC_epsilon
41 #define GLM_GTC_epsilon
44 #include "../detail/setup.hpp"
45 #include "../detail/precision.hpp"
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTC_epsilon extension included")
60 template <
typename T, precision P,
template <
typename, precision>
class vecType>
62 vecType<T, P>
const & x,
63 vecType<T, P>
const & y,
70 template <
typename genType>
80 template <
typename genType>
84 typename genType::value_type
const &
epsilon);
90 template <
typename genType>
99 #include "epsilon.inl"
101 #endif//GLM_GTC_epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL vecType< bool, P > epsilonEqual(vecType< T, P > const &x, vecType< T, P > const &y, T const &epsilon)
Returns the component-wise comparison of |x - y| < epsilon.
GLM_FUNC_DECL genType::boolType epsilonNotEqual(genType const &x, genType const &y, typename genType::value_type const &epsilon)
Returns the component-wise comparison of |x - y| < epsilon.