Box constructor

Box(
  1. ShapeConfig config,
  2. double width,
  3. double height,
  4. 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;
}