equals method

bool equals(
  1. Sphere sphere
)

Implementation

bool equals(Sphere sphere) {
  return sphere.center.equals(center) && (sphere.radius == radius);
}