18 #include "../gtc/constants.hpp" 19 #include "../ext/vector_relational.hpp" 21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 22 # pragma message("GLM: GLM_GTC_ulp extension included") 32 template<
typename genType>
33 GLM_FUNC_DECL genType
next_float(genType
const& x);
37 template<
typename genType>
38 GLM_FUNC_DECL genType
prev_float(genType
const& x);
42 template<
typename genType>
43 GLM_FUNC_DECL genType
next_float(genType
const& x, uint
const& Distance);
47 template<
typename genType>
48 GLM_FUNC_DECL genType
prev_float(genType
const& x, uint
const& Distance);
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);
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).