0.9.9 API documenation
ulp.hpp
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // Dependencies
17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../detail/type_int.hpp"
20 #include "../detail/compute_vector_relational.hpp"
21 
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTC_ulp extension included")
24 #endif
25 
26 namespace glm
27 {
30 
33  template<typename genType>
34  GLM_FUNC_DECL genType next_float(genType const & x);
35 
38  template<typename genType>
39  GLM_FUNC_DECL genType prev_float(genType const & x);
40 
43  template<typename genType>
44  GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
45 
48  template<typename genType>
49  GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);
50 
53  template<typename T>
54  GLM_FUNC_DECL uint float_distance(T const & x, T const & y);
55 
58  template<typename T, qualifier Q>
59  GLM_FUNC_DECL vec<2, uint, Q> float_distance(vec<2, T, Q> const & x, vec<2, T, Q> const & y);
60 
62 }// namespace glm
63 
64 #include "ulp.inl"
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.
GLM_FUNC_DECL genType next_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance after the input value(s).
Definition: _noise.hpp:11
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