0.9.9 API documenation
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_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
Definition: common.hpp:20
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
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.