1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update AABB.hpp

This commit is contained in:
Sandu Liviu Catalin 2021-08-18 22:18:49 +03:00
parent a36e85d9b7
commit 2b1c76a05d

View File

@ -264,7 +264,12 @@ struct AABB
*/
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));
#endif
}
/* --------------------------------------------------------------------------------------------