distanceToSphere method

num distanceToSphere(
  1. Sphere sphere
)

Implementation

num distanceToSphere(Sphere sphere) {
  return distanceToPoint(sphere.center) - sphere.radius;
}