0.9.7
epsilon.hpp
Go to the documentation of this file.
1 
44 #pragma once
45 
46 // Dependencies
47 #include "../detail/setup.hpp"
48 #include "../detail/precision.hpp"
49 
50 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
51 # pragma message("GLM: GLM_GTC_epsilon extension included")
52 #endif
53 
54 namespace glm
55 {
58 
63  template <typename T, precision P, template <typename, precision> class vecType>
64  GLM_FUNC_DECL vecType<bool, P> epsilonEqual(
65  vecType<T, P> const & x,
66  vecType<T, P> const & y,
67  T const & epsilon);
68 
73  template <typename genType>
74  GLM_FUNC_DECL bool epsilonEqual(
75  genType const & x,
76  genType const & y,
77  genType const & epsilon);
78 
83  template <typename genType>
84  GLM_FUNC_DECL typename genType::boolType epsilonNotEqual(
85  genType const & x,
86  genType const & y,
87  typename genType::value_type const & epsilon);
88 
93  template <typename genType>
94  GLM_FUNC_DECL bool epsilonNotEqual(
95  genType const & x,
96  genType const & y,
97  genType const & epsilon);
98 
100 }//namespace glm
101 
102 #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 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.
Definition: _noise.hpp:40