Box constructor
Box(
- ShapeConfig config,
- double width,
- double height,
- double depth,
Box Shape
config
config file of the shape
width
the width of the box
height
the height of the box
depth
the depth of the box
Implementation
Box(ShapeConfig config, this.width,this.height,this.depth):super(config){
halfWidth = width * 0.5;
halfHeight = height * 0.5;
halfDepth = depth * 0.5;
type = Shapes.box;
}