| 0.9.8

- Main Page
- Modules
- Files

- File List

epsilon.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 // Dependencies
18 #include "../detail/setup.hpp"
19 #include "../detail/precision.hpp"
20
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTC_epsilon extension included")
23 #endif
24
25 namespace glm
26 {
29
34 template <typename T, precision P, template <typename, precision> class vecType>
35 GLM_FUNC_DECL vecType<bool, P> epsilonEqual(
36 vecType<T, P> const & x,
37 vecType<T, P> const & y,
38 T const & epsilon);
39
44 template <typename genType>
45 GLM_FUNC_DECL bool epsilonEqual(
46 genType const & x,
47 genType const & y,
48 genType const & epsilon);
49
54 template <typename genType>
55 GLM_FUNC_DECL typename genType::boolType epsilonNotEqual(
56 genType const & x,
57 genType const & y,
58 typename genType::value_type const & epsilon);
59
64 template <typename genType>
65 GLM_FUNC_DECL bool epsilonNotEqual(
66 genType const & x,
67 genType const & y,
68 genType const & epsilon);
69
71 }//namespace glm
72
73 #include "epsilon.inl"
glm::epsilonNotEqual
GLM_FUNC_DECL bool epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)
Returns the component-wise comparison of |x - y| >= epsilon.
glm::epsilon
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
glm
Definition: _noise.hpp:11
glm::epsilonEqual
GLM_FUNC_DECL bool epsilonEqual(genType const &x, genType const &y, genType const &epsilon)
Returns the component-wise comparison of |x - y| < epsilon.