Package com.io7m.jcoords.core.conversion
Enum Class CAxis
- All Implemented Interfaces:
Serializable,Comparable<CAxis>,Constable
An axis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe negative X axis.The negative Y axis.The negative Z axis.The positive X axis.The positive Y axis.The positive Z axis. -
Method Summary
Modifier and TypeMethodDescriptionintaxis()static CAxisParse an axis.static CAxisReturns the enum constant of this class with the specified name.static CAxis[]values()Returns an array containing the constants of this enum class, in the order they are declared.com.io7m.jtensors.core.unparameterized.vectors.Vector3Dvector()
-
Enum Constant Details
-
AXIS_POSITIVE_X
The positive X axis. -
AXIS_POSITIVE_Y
The positive Y axis. -
AXIS_POSITIVE_Z
The positive Z axis. -
AXIS_NEGATIVE_X
The negative X axis. -
AXIS_NEGATIVE_Y
The negative Y axis. -
AXIS_NEGATIVE_Z
The negative Z axis.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
of
Parse an axis.- Parameters:
name- The axis as "+x", "-x", "+y", "-y", "+z", or "-z"- Returns:
- A parsed axis
- Throws:
IllegalArgumentException- If the axis cannot be parsed
-
axis
public int axis()- Returns:
- The axis as 'x', 'y' or 'z'
-
axisSigned
- Returns:
- The axis as "+x", "-x", "+y", "-y", "+z", or "-z"
-
vector
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D vector()- Returns:
- The vector for the axis
-