Class Hexagon

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class Hexagon extends Mesh
A regular hexagon with each triangle having side length that is given in the constructor.
  • Constructor Details

    • Hexagon

      public Hexagon()
    • Hexagon

      public Hexagon(String name, float sideLength)
      Hexagon Constructor instantiates a new Hexagon. This element is center on 0,0,0 with all normals pointing up. The user must move and rotate for positioning.
      Parameters:
      name - the name of the scene element. This is required for identification and comparison purposes.
      sideLength - The length of all the sides of the triangles
  • Method Details