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:
parent
a36e85d9b7
commit
2b1c76a05d
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user