mirror of https://github.com/AxioDL/zeus.git
Add CAABox::intersectionRadius()
This commit is contained in:
parent
505696e4a3
commit
11ba10b557
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue