Sphere constructor

Sphere([
  1. double radius = 1.0
])

@param radius The radius of the sphere, a non-negative number.

Implementation

Sphere([this.radius = 1.0]): super(type: ShapeType.sphere ){
  if (radius < 0) {
    throw('The sphere radius cannot be negative.');
  }

  updateBoundingSphereRadius();
}