Merge pull request #1034 from gottfriedleibniz/patch-ismultiple

fix: isMultiple #1034
This commit is contained in:
Christophe 2020-11-09 17:56:22 +01:00 committed by GitHub
commit f6574ccf71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ namespace glm
{
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'isMultiple' only accept integer inputs");
return (Value % Multiple) == vec<L, T, Q>(0);
return equal(Value % Multiple, vec<L, T, Q>(0));
}
template<length_t L, typename T, qualifier Q>
@ -40,7 +40,7 @@ namespace glm
{
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'isMultiple' only accept integer inputs");
return (Value % Multiple) == vec<L, T, Q>(0);
return equal(Value % Multiple, vec<L, T, Q>(0));
}
template<length_t L, typename T, qualifier Q>