Cylinder constructor
Cylinder(
- ShapeConfig config,
- double radius,
- double height
Cylinder shape
config
configuration of the shape
radius
the top and bottom radius of the cylinder
height
the height of the cylinder
Implementation
Cylinder(ShapeConfig config, this.radius, this.height ):super(config) {
type = Shapes.cylinder;
halfHeight = height * 0.5;
}