18 #include "../detail/setup.hpp"
19 #include "../detail/qualifier.hpp"
20 #include "../detail/type_int.hpp"
21 #include "../detail/compute_vector_relational.hpp"
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTC_ulp extension included")
34 template<
typename genType>
35 GLM_FUNC_DECL genType
next_float(genType
const& x);
39 template<
typename genType>
40 GLM_FUNC_DECL genType
prev_float(genType
const& x);
44 template<
typename genType>
45 GLM_FUNC_DECL genType
next_float(genType
const& x,
uint const& Distance);
49 template<
typename genType>
50 GLM_FUNC_DECL genType
prev_float(genType
const& x,
uint const& Distance);
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);
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).
unsigned int uint
Unsigned integer type.
GLM_FUNC_DECL genType prev_float(genType const &x, uint const &Distance)
Return the value(s) ULP distance before the input value(s).