BoundingSphere constructor

BoundingSphere([
  1. Vector3? center,
  2. double? radius
])

center - center of the sphere. Default is a Vector3 at (0, 0, 0).

radius - radius of the sphere. Default is -1.

Implementation

BoundingSphere([Vector3? center, double? radius]){
  this.center = center ?? Vector3.zero();
  this.radius = radius ?? double.infinity;
}