public enum RotationDirection extends Enum<RotationDirection>
| Modifier and Type | Method and Description |
|---|---|
CubeCoordinate |
calculateRotation(CubeCoordinate coord)
Calculates a rotation (right or left) of
coord. |
static RotationDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RotationDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RotationDirection RIGHT
public static final RotationDirection LEFT
public static RotationDirection[] values()
for (RotationDirection c : RotationDirection.values()) System.out.println(c);
public static RotationDirection 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 CubeCoordinate calculateRotation(CubeCoordinate coord)
coord.coord - coordinate to rotateCopyright © 2016. All rights reserved.