GLM  0.9.5
gtc/epsilon.hpp
Go to the documentation of this file.
1 
40 #ifndef GLM_GTC_epsilon
41 #define GLM_GTC_epsilon
42 
43 // Dependencies
44 #include "../detail/setup.hpp"
45 #include "../detail/precision.hpp"
46 
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTC_epsilon extension included")
49 #endif
50 
51 namespace glm
52 {
55 
60  template <typename T, precision P, template <typename, precision> class vecType>
61  GLM_FUNC_DECL vecType<bool, P> epsilonEqual(
62  vecType<T, P> const & x,
63  vecType<T, P> const & y,
64  T const & epsilon);
65 
70  template <typename genType>
71  GLM_FUNC_DECL bool epsilonEqual(
72  genType const & x,
73  genType const & y,
74  genType const & epsilon);
75 
80  template <typename genType>
81  GLM_FUNC_DECL typename genType::boolType epsilonNotEqual(
82  genType const & x,
83  genType const & y,
84  typename genType::value_type const & epsilon);
85 
90  template <typename genType>
91  GLM_FUNC_DECL bool epsilonNotEqual(
92  genType const & x,
93  genType const & y,
94  genType const & epsilon);
95 
97 }//namespace glm
98 
99 #include "epsilon.inl"
100 
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| &lt; 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| &lt; epsilon.