public class Box extends ProceduralMesh
Box is a Mesh with a width, height, and length of 1. It is centered around the origin.
  • Field Details

    • width

      public double width
    • height

      public double height
    • length

      public double length
  • Constructor Details

    • Box

      public Box()
    • Box

      public Box(double width, double length, double height)
      Create a box with the given dimensions.
      Parameters:
      width - width of the box (x)
      length - length of the box (y)
      height - height of the box (z)
  • Method Details