17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../detail/type_int.hpp"
20 #include "../detail/compute_vector_relational.hpp"
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTC_ulp extension included")
33 template<
typename genType>
34 GLM_FUNC_DECL genType
next_float(genType
const & x);
38 template<
typename genType>
39 GLM_FUNC_DECL genType
prev_float(genType
const & x);
43 template<
typename genType>
44 GLM_FUNC_DECL genType
next_float(genType
const & x,
uint const & Distance);
48 template<
typename genType>
49 GLM_FUNC_DECL genType
prev_float(genType
const & x,
uint const & Distance);
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);
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).
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.