mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 00:54:34 +00:00
Fixed vec equality check function from the compute_vector_decl.hpp file
This commit is contained in:
parent
a2844eede8
commit
45008b225e
@ -159,8 +159,8 @@ namespace glm {
|
|||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<L, T, Q> const& v1, vec<L, T, Q> const& v2)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<L, T, Q> const& v1, vec<L, T, Q> const& v2)
|
||||||
{
|
{
|
||||||
bool b = true;
|
bool b = true;
|
||||||
for (length_t i = 0; i < L; ++i)
|
for (length_t i = 0; b && i < L; ++i)
|
||||||
b = b && detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1.x, v2.x);
|
b = detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1[i], v2[i]);
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user