Package snap.gfx3d

Enum Class Side3D.Corner

java.lang.Object
java.lang.Enum<Side3D.Corner>
snap.gfx3d.Side3D.Corner
All Implemented Interfaces:
Serializable, Comparable<Side3D.Corner>, Constable
Enclosing class:
Side3D

public static enum Side3D.Corner extends Enum<Side3D.Corner>
This class describes the corners of a standard cube.
  • Enum Constant Details

    • FRONT_TOP_LEFT

      public static final Side3D.Corner FRONT_TOP_LEFT
    • FRONT_TOP_RIGHT

      public static final Side3D.Corner FRONT_TOP_RIGHT
    • FRONT_BOTTOM_LEFT

      public static final Side3D.Corner FRONT_BOTTOM_LEFT
    • FRONT_BOTTOM_RIGHT

      public static final Side3D.Corner FRONT_BOTTOM_RIGHT
    • BACK_TOP_LEFT

      public static final Side3D.Corner BACK_TOP_LEFT
    • BACK_TOP_RIGHT

      public static final Side3D.Corner BACK_TOP_RIGHT
    • BACK_BOTTOM_LEFT

      public static final Side3D.Corner BACK_BOTTOM_LEFT
    • BACK_BOTTOM_RIGHT

      public static final Side3D.Corner BACK_BOTTOM_RIGHT
  • Method Details

    • values

      public static Side3D.Corner[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Side3D.Corner valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getSides

      public Side3D[] getSides()
      Returns the sides associated with this corner.