java.lang.Object
com.marginallyclever.ro3.mesh.Mesh
com.marginallyclever.ro3.mesh.shapes.Box

public class Box extends Mesh
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)