Merge branch 'dev' of https://github.com/g-truc/glm into dev

This commit is contained in:
Christophe Riccio 2018-09-27 11:40:16 +02:00
commit 3b607947a7
3 changed files with 26 additions and 6 deletions

View File

@ -17,6 +17,7 @@
// Dependencies
#include "../ext/scalar_int_sized.hpp"
#include "../common.hpp"
#include "../detail/qualifier.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)

View File

@ -7,6 +7,7 @@
#include "../detail/type_float.hpp"
#include "../ext/scalar_constants.hpp"
#include <cmath>
#if(GLM_COMPILER & GLM_COMPILER_VC)
# pragma warning(push)

View File

@ -27,7 +27,9 @@ namespace glm
{
/// Return the next ULP value(s) after the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -35,7 +37,9 @@ namespace glm
/// Return the value(s) ULP distance after the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -43,7 +47,9 @@ namespace glm
/// Return the value(s) ULP distance after the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -51,7 +57,9 @@ namespace glm
/// Return the previous ULP value(s) before the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -59,7 +67,9 @@ namespace glm
/// Return the value(s) ULP distance before the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -67,7 +77,9 @@ namespace glm
/// Return the value(s) ULP distance before the input value(s).
///
/// @tparam genType A floating-point scalar type.
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam T Floating-point
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
@ -75,12 +87,18 @@ namespace glm
/// Return the distance in the number of ULP between 2 single-precision floating-point scalars.
///
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
GLM_FUNC_DECL vec<L, int, Q> float_distance(vec<L, float, Q> const& x, vec<L, float, Q> const& y);
/// Return the distance in the number of ULP between 2 double-precision floating-point scalars.
///
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
/// @tparam Q Value from qualifier enum
///
/// @see ext_scalar_ulp
template<length_t L, typename T, qualifier Q>
GLM_FUNC_DECL vec<L, int64, Q> float_distance(vec<L, double, Q> const& x, vec<L, double, Q> const& y);