Class Pyramid

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class Pyramid extends Mesh
Pyramid provides an extension of Mesh. A pyramid is defined by a width at the base and a height. The pyramid is a four sided pyramid with the center at (0,0). The pyramid will be axis aligned with the peak being on the positive y axis and the base being in the x-z plane.
  • Constructor Details

    • Pyramid

      public Pyramid()
    • Pyramid

      public Pyramid(String name, double width, double height)
      Constructor instantiates a new Pyramid object. The base width and the height are provided.
      Parameters:
      name - the name of the scene element. This is required for identification and comparison purposes.
      width - the base width of the pyramid.
      height - the height of the pyramid from the base to the peak.
  • Method Details