Befriending of classes BoundingBox and Sphere.