boundingRadius property

  1. @override
double get boundingRadius
override

Radius of the sphere around the bounds centre, used to frame a camera.

Implementation

@override
double get boundingRadius {
  final extent = (bounds.max - bounds.min)..scale(0.5);
  return extent.length;
}