public enum AxisDirection extends Enum<AxisDirection>
Modifier and Type | Method and Description |
---|---|
int |
getSignum()
Gets the signum for this direction.
|
static AxisDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AxisDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisDirection PLUS
public static final AxisDirection ZERO
public static final AxisDirection MINUS
public static AxisDirection[] values()
for (AxisDirection c : AxisDirection.values()) System.out.println(c);
public static AxisDirection 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 int getSignum()
A positive direction has a value of 1, negative direction -1 and 0 for no direction.