Class QuadQuad

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class QuadQuad extends Mesh
QuadQuad defines a four sided, two dimensional shape. The local height of the QuadQuad defines its size about the y-axis, while the width defines the x-axis. The z-axis will always be 0.
  • Field Details

    • _width

      protected double _width
    • _height

      protected double _height
  • Constructor Details

    • QuadQuad

      public QuadQuad()
    • QuadQuad

      public QuadQuad(String name, double width, double height, int mode)
      Constructor creates a new QuadQuad object with the provided width and height.
      Parameters:
      name - the name of the QuadQuad.
      width - the width of the QuadQuad.
      height - the height of the QuadQuad.
      mode - the mode of the QuadQuad.
  • Method Details

    • resize

      public void resize(double width, double height, int mode)
      resize changes the width and height of the given quad by altering its vertices.
      Parameters:
      width - the new width of the QuadQuad.
      height - the new height of the QuadQuad.
      mode - the new mode of the QuadQuad.
    • getWidth

      public double getWidth()
    • getHeight

      public double getHeight()