GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

gtc/ulp.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTC_ulp
40 #define GLM_GTC_ulp
41
42 // Dependencies
43 #include "../detail/setup.hpp"
44
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTC_ulp extension included")
47 #endif
48
49 namespace glm
50 {
53
56 template <typename genType>
57 GLM_FUNC_DECL genType next_float(genType const & x);
58
61 template <typename genType>
62 GLM_FUNC_DECL genType prev_float(genType const & x);
63
66 template <typename genType>
67 GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
68
71 template <typename genType>
72 GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
73
76 template <typename T>
77 GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
78
81 template<typename T, template<typename> class vecType>
82 GLM_FUNC_DECL vecType<uint> float_distance(vecType<T> const & x, vecType<T> const & y);
83
85 }// namespace glm
86
87 #include "ulp.inl"
88
89 #endif//GLM_GTC_ulp
90
glm::next_float
GLM_FUNC_DECL genType next_float(genType const &x)
Return the next ULP value(s) after the input value(s).
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:171
glm::float_distance
GLM_FUNC_DECL uint float_distance(T const &x, T const &y)
Return the distance in the number of ULP between 2 scalars.
glm::prev_float
GLM_FUNC_DECL genType prev_float(genType const &x)
Return the previous ULP value(s) before the input value(s).