BoundingSphere constructor
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;
}