Enum EViewDirection2D
- All Implemented Interfaces:
Serializable, Comparable<EViewDirection2D>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe backward direction, i.e. the direction opposite to the direction the observer is looking at.The forward direction, i.e. the direction the observer is looking at.The left direction, i.e. the direction on the observer's right hand side.The right direction, i.e. the direction on the observer's left hand side. -
Method Summary
Modifier and TypeMethodDescriptionabstract ECardinalDirection2Dresolve(ECardinalDirection2D direction) static EViewDirection2DReturns the enum constant of this type with the specified name.static EViewDirection2D[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORWARD
The forward direction, i.e. the direction the observer is looking at. -
BACKWARD
The backward direction, i.e. the direction opposite to the direction the observer is looking at. -
LEFT
The left direction, i.e. the direction on the observer's right hand side. -
RIGHT
The right direction, i.e. the direction on the observer's left hand side.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
resolve
-