distanceToSphere method

double distanceToSphere(
  1. BoundingSphere sphere
)

Implementation

double distanceToSphere(BoundingSphere sphere) {
  return distanceToPoint(sphere.center) - sphere.radius;
}