0.9.9 API documentation
vector_ulp.hpp
Go to the documentation of this file.
1 
17 #pragma once
18 
19 // Dependencies
20 #include "../ext/scalar_ulp.hpp"
21 
22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_EXT_vector_ulp extension included")
24 #endif
25 
26 namespace glm
27 {
35  template<length_t L, typename T, qualifier Q>
36  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x);
37 
45  template<length_t L, typename T, qualifier Q>
46  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x, int ULPs);
47 
55  template<length_t L, typename T, qualifier Q>
56  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
57 
65  template<length_t L, typename T, qualifier Q>
66  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x);
67 
75  template<length_t L, typename T, qualifier Q>
76  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x, int ULPs);
77 
85  template<length_t L, typename T, qualifier Q>
86  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
87 
94  template<length_t L, typename T, qualifier Q>
95  GLM_FUNC_DECL vec<L, int, Q> floatDistance(vec<L, float, Q> const& x, vec<L, float, Q> const& y);
96 
103  template<length_t L, typename T, qualifier Q>
104  GLM_FUNC_DECL vec<L, int64, Q> floatDistance(vec<L, double, Q> const& x, vec<L, double, Q> const& y);
105 
107 }//namespace glm
108 
109 #include "vector_ulp.inl"
Definition: common.hpp:20