intersectsSphere method

bool intersectsSphere(
  1. Sphere sphere
)

Implementation

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