0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

ulp.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 // Dependencies
18 #include "../detail/setup.hpp"
19 #include "../detail/qualifier.hpp"
20 #include "../detail/type_int.hpp"
21 #include "../detail/compute_vector_relational.hpp"
22
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTC_ulp extension included")
25 #endif
26
27 namespace glm
28 {
31
34 template<typename genType>
35 GLM_FUNC_DECL genType next_float(genType const& x);
36
39 template<typename genType>
40 GLM_FUNC_DECL genType prev_float(genType const& x);
41
44 template<typename genType>
45 GLM_FUNC_DECL genType next_float(genType const& x, uint const& Distance);
46
49 template<typename genType>
50 GLM_FUNC_DECL genType prev_float(genType const& x, uint const& Distance);
51
54 template<typename T>
55 GLM_FUNC_DECL uint float_distance(T const& x, T const& y);
56
59 template<typename T, qualifier Q>
60 GLM_FUNC_DECL vec<2, uint, Q> float_distance(vec<2, T, Q> const& x, vec<2, T, Q> const& y);
61
63 }// namespace glm
64
65 #include "ulp.inl"
glm::next_float
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
glm
Definition: common.hpp:20
glm::prev_float
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
glm::float_distance
GLM_FUNC_DECL vec< 2, uint, Q > float_distance(vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)
Return the distance in the number of ULP between 2 vectors.