33 lines
1 KiB
C++
33 lines
1 KiB
C++
/// @ref ext_vector_relational
|
|
|
|
// Dependency:
|
|
#include "../vector_relational.hpp"
|
|
#include "../common.hpp"
|
|
#include "../detail/qualifier.hpp"
|
|
|
|
namespace glm
|
|
{
|
|
template<length_t L, typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T Epsilon)
|
|
{
|
|
return equal(x, y, vec<L, T, Q>(Epsilon));
|
|
}
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& Epsilon)
|
|
{
|
|
return lessThanEqual(abs(x - y), Epsilon);
|
|
}
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T Epsilon)
|
|
{
|
|
return notEqual(x, y, vec<L, T, Q>(Epsilon));
|
|
}
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& Epsilon)
|
|
{
|
|
return greaterThan(abs(x - y), Epsilon);
|
|
}
|
|
}//namespace glm
|