mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-18 11:37:15 +01:00
Update AABB.hpp
This commit is contained in:
parent
a36e85d9b7
commit
2b1c76a05d
@ -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
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user