0.9.9 API documenation: epsilon.hpp Source File

| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

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