Update AABB.hpp

This commit is contained in:
Sandu Liviu Catalin
2021-08-18 22:18:49 +03:00
parent a36e85d9b7
commit 2b1c76a05d
+5
View File
@@ -264,7 +264,12 @@ struct AABB
*/ */
SQMOD_NODISCARD int32_t Cmp(SQFloat s) const SQMOD_NODISCARD int32_t Cmp(SQFloat s) const
{ {
#ifdef SQUSEDOUBLE
auto f = static_cast< Value >(s);
return Cmp(AABB(f, f, f, f, f, f));
#else
return Cmp(AABB(s, s, s, s, s, s)); return Cmp(AABB(s, s, s, s, s, s));
#endif
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------