|
|
@@ -86,7 +86,7 @@ namespace detail
|
|
|
template <typename genType>
|
|
|
GLM_FUNC_QUALIFIER genType length(genType x)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'length' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'length' accepts only floating-point inputs");
|
|
|
|
|
|
return abs(x);
|
|
|
}
|
|
|
@@ -94,7 +94,7 @@ namespace detail
|
|
|
template <typename T, precision P, template <typename, precision> class vecType>
|
|
|
GLM_FUNC_QUALIFIER T length(vecType<T, P> const & v)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'length' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'length' accepts only floating-point inputs");
|
|
|
|
|
|
return sqrt(dot(v, v));
|
|
|
}
|
|
|
@@ -103,7 +103,7 @@ namespace detail
|
|
|
template <typename genType>
|
|
|
GLM_FUNC_QUALIFIER genType distance(genType const & p0, genType const & p1)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'distance' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'distance' accepts only floating-point inputs");
|
|
|
|
|
|
return length(p1 - p0);
|
|
|
}
|
|
|
@@ -118,14 +118,14 @@ namespace detail
|
|
|
template <typename T>
|
|
|
GLM_FUNC_QUALIFIER T dot(T x, T y)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' accepts only floating-point inputs");
|
|
|
return x * y;
|
|
|
}
|
|
|
|
|
|
template <typename T, precision P, template <typename, precision> class vecType>
|
|
|
GLM_FUNC_QUALIFIER T dot(vecType<T, P> const & x, vecType<T, P> const & y)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' accepts only floating-point inputs");
|
|
|
return detail::compute_dot<vecType, T, P>::call(x, y);
|
|
|
}
|
|
|
|
|
|
@@ -133,7 +133,7 @@ namespace detail
|
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_QUALIFIER tvec3<T, P> cross(tvec3<T, P> const & x, tvec3<T, P> const & y)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'cross' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'cross' accepts only floating-point inputs");
|
|
|
|
|
|
return tvec3<T, P>(
|
|
|
x.y * y.z - y.y * x.z,
|
|
|
@@ -145,7 +145,7 @@ namespace detail
|
|
|
template <typename genType>
|
|
|
GLM_FUNC_QUALIFIER genType normalize(genType const & x)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'normalize' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'normalize' accepts only floating-point inputs");
|
|
|
|
|
|
return x < genType(0) ? genType(-1) : genType(1);
|
|
|
}
|
|
|
@@ -153,7 +153,7 @@ namespace detail
|
|
|
template <typename T, precision P, template <typename, precision> class vecType>
|
|
|
GLM_FUNC_QUALIFIER vecType<T, P> normalize(vecType<T, P> const & x)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'normalize' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'normalize' accepts only floating-point inputs");
|
|
|
|
|
|
return x * inversesqrt(dot(x, x));
|
|
|
}
|
|
|
@@ -182,7 +182,7 @@ namespace detail
|
|
|
template <typename genType>
|
|
|
GLM_FUNC_QUALIFIER genType refract(genType const & I, genType const & N, genType const & eta)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'refract' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'refract' accepts only floating-point inputs");
|
|
|
|
|
|
genType const dotValue(dot(N, I));
|
|
|
genType const k(static_cast<genType>(1) - eta * eta * (static_cast<genType>(1) - dotValue * dotValue));
|
|
|
@@ -192,7 +192,7 @@ namespace detail
|
|
|
template <typename T, precision P, template <typename, precision> class vecType>
|
|
|
GLM_FUNC_QUALIFIER vecType<T, P> refract(vecType<T, P> const & I, vecType<T, P> const & N, T eta)
|
|
|
{
|
|
|
- GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'refract' only accept floating-point inputs");
|
|
|
+ GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'refract' accepts only floating-point inputs");
|
|
|
|
|
|
T const dotValue(dot(N, I));
|
|
|
T const k(static_cast<T>(1) - eta * eta * (static_cast<T>(1) - dotValue * dotValue));
|