mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-30 15:50:05 -06:00
13 lines
325 B
C++
13 lines
325 B
C++
namespace Hedgehog::Math
|
|
{
|
|
inline CVector Hedgehog::Math::CAabb::Center() const
|
|
{
|
|
// return (min + max) / 2;
|
|
Hedgehog::Math::CVector result;
|
|
result.X = (max.X + min.X) * 0.5f;
|
|
result.Y = (max.Y + min.Y) * 0.5f;
|
|
result.Z = 0.5f * (max.Z + min.Z);
|
|
return result;
|
|
}
|
|
}
|