0.9.9 API documenation
ulp.hpp
Go to the documentation of this file.
1 
15 #pragma once
16 
17 // Dependencies
18 #include "../gtc/constants.hpp"
19 #include "../ext/vector_relational.hpp"
20 
21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTC_ulp extension included")
23 #endif
24 
25 namespace glm
26 {
29 
32  template<typename genType>
33  GLM_FUNC_DECL genType next_float(genType const& x);
34 
37  template<typename genType>
38  GLM_FUNC_DECL genType prev_float(genType const& x);
39 
42  template<typename genType>
43  GLM_FUNC_DECL genType next_float(genType const& x, uint const& Distance);
44 
47  template<typename genType>
48  GLM_FUNC_DECL genType prev_float(genType const& x, uint const& Distance);
49 
52  template<typename T>
53  GLM_FUNC_DECL uint float_distance(T const& x, T const& y);
54 
57  template<typename T, qualifier Q>
58  GLM_FUNC_DECL vec<2, uint, Q> float_distance(vec<2, T, Q> const& x, vec<2, T, Q> const& y);
59 
61 }// namespace glm
62 
63 #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 prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).
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