distanceToSphere method

double distanceToSphere(
  1. Sphere sphere
)

Implementation

double distanceToSphere(Sphere sphere) {
  return distanceToPoint(sphere.position) - sphere.radius;
}