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