3#include "egg/math/Vector.hh"
15 f32 radiusDiff = rhs.radius - radius;
16 if (radiusDiff < 0.0f) {
20 return rhs.pos.
ps_sqDistance(this->pos) < radiusDiff * radiusDiff;
Represents a sphere in 3D space.
constexpr bool isInsideOtherSphere(const Sphere3f &rhs) const
Not actually part of EGG. Included here for compartmentalization.
constexpr f32 ps_sqDistance(const Vector3f &rhs) const
Paired-singles impl. of sqDistance.