summaryrefslogtreecommitdiffstats
path: root/external/include/glm/detail/func_vector_relational.inl
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/detail/func_vector_relational.inl')
-rw-r--r--external/include/glm/detail/func_vector_relational.inl56
1 files changed, 28 insertions, 28 deletions
diff --git a/external/include/glm/detail/func_vector_relational.inl b/external/include/glm/detail/func_vector_relational.inl
index 3d8d2b7..b081a90 100644
--- a/external/include/glm/detail/func_vector_relational.inl
+++ b/external/include/glm/detail/func_vector_relational.inl
@@ -1,79 +1,79 @@
/// @ref core
/// @file glm/detail/func_vector_relational.inl
-#include <limits>
+#include "compute_vector_relational.hpp"
namespace glm
{
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> lessThan(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> lessThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] < y[i];
return Result;
}
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> lessThanEqual(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> lessThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] <= y[i];
return Result;
}
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> greaterThan(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> greaterThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] > y[i];
return Result;
}
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> greaterThanEqual(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> greaterThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] >= y[i];
return Result;
}
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> equal(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
- Result[i] = x[i] == y[i];
+ Result[i] = detail::compute_equal<T>::call(x[i], y[i]);
return Result;
}
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> notEqual(vecType<T, P> const & x, vecType<T, P> const & y)
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y)
{
assert(x.length() == y.length());
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < x.length(); ++i)
- Result[i] = x[i] != y[i];
+ Result[i] = !detail::compute_equal<T>::call(x[i], y[i]);
return Result;
}
- template <precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER bool any(vecType<bool, P> const & v)
+ template<length_t L, qualifier Q>
+ GLM_FUNC_QUALIFIER bool any(vec<L, bool, Q> const& v)
{
bool Result = false;
for(length_t i = 0; i < v.length(); ++i)
@@ -81,8 +81,8 @@ namespace glm
return Result;
}
- template <precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER bool all(vecType<bool, P> const & v)
+ template<length_t L, qualifier Q>
+ GLM_FUNC_QUALIFIER bool all(vec<L, bool, Q> const& v)
{
bool Result = true;
for(length_t i = 0; i < v.length(); ++i)
@@ -90,10 +90,10 @@ namespace glm
return Result;
}
- template <precision P, template <typename, precision> class vecType>
- GLM_FUNC_QUALIFIER vecType<bool, P> not_(vecType<bool, P> const & v)
+ template<length_t L, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, bool, Q> not_(vec<L, bool, Q> const& v)
{
- vecType<bool, P> Result(uninitialize);
+ vec<L, bool, Q> Result;
for(length_t i = 0; i < v.length(); ++i)
Result[i] = !v[i];
return Result;