intersectsSphere method

bool intersectsSphere(
  1. BoundingSphere sphere
)

Implementation

bool intersectsSphere(BoundingSphere sphere) {
  return distanceSqToPoint(sphere.center) <= (sphere.radius * sphere.radius);
}