use std/glm's EPSILON instead of FLOAT_SMALL

This commit is contained in:
2024-08-24 00:20:24 +08:00
parent 58e495ddbb
commit d81d45486e
4 changed files with 58 additions and 48 deletions

View File

@@ -32,6 +32,11 @@ namespace hgl
//#undef DEFINE_MATRIX
inline const bool IsNearlyEqual(const Quatf &q1,const Quatf &q2)
{
return glm::all(glm::epsilonEqual(q1,q2,glm::epsilon<float>()));
}
inline Matrix4f inverse(const Matrix4f &m)
{
return glm::inverse(m);