mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-09 13:37:46 +00:00
Add CAABox::intersectionRadius()
This commit is contained in:
@@ -106,6 +106,12 @@ public:
|
||||
return distanceFromPointSquared(other.position) <= other.radius * other.radius;
|
||||
}
|
||||
|
||||
float intersectionRadius(const CSphere& other) const
|
||||
{
|
||||
float dist = distanceFromPoint(other.position);
|
||||
return (dist < other.radius) ? dist : -1.f;
|
||||
}
|
||||
|
||||
inline CAABox booleanIntersection(const CAABox& other) const
|
||||
{
|
||||
CVector3f minVec = CVector3f::skZero;
|
||||
|
||||
Reference in New Issue
Block a user