Sphere constructor

Sphere(
  1. ShapeConfig config,
  2. double radius
)

Sphere shape

config the configuration of the shape

radius The radius of the sphere

Implementation

Sphere(ShapeConfig config, this.radius):super(config) {
  type = Shapes.sphere;
  //Object.assign(Object.create(Shape.prototype));
}