public enum CAxis extends Enum<CAxis>
| Enum Constant and Description |
|---|
AXIS_NEGATIVE_X
The negative X axis.
|
AXIS_NEGATIVE_Y
The negative Y axis.
|
AXIS_NEGATIVE_Z
The negative Z axis.
|
AXIS_POSITIVE_X
The positive X axis.
|
AXIS_POSITIVE_Y
The positive Y axis.
|
AXIS_POSITIVE_Z
The positive Z axis.
|
| Modifier and Type | Method and Description |
|---|---|
int |
axis() |
String |
axisSigned() |
static CAxis |
of(String name)
Parse an axis.
|
static CAxis |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CAxis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
com.io7m.jtensors.VectorI3D |
vector() |
public static final CAxis AXIS_POSITIVE_X
public static final CAxis AXIS_POSITIVE_Y
public static final CAxis AXIS_POSITIVE_Z
public static final CAxis AXIS_NEGATIVE_X
public static final CAxis AXIS_NEGATIVE_Y
public static final CAxis AXIS_NEGATIVE_Z
public static CAxis[] values()
for (CAxis c : CAxis.values()) System.out.println(c);
public static CAxis valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CAxis of(String name) throws IllegalArgumentException
name - The axis as "+x", "-x", "+y", "-y", "+z", or "-z"IllegalArgumentException - If the axis cannot be parsedpublic int axis()
public String axisSigned()
public com.io7m.jtensors.VectorI3D vector()
Copyright © 2017 <code@io7m.com> http://io7m.com