Direction |
Coord.altDirectionTo(Coord other) |
Determine the direction most aimed toward another coordinate.
|
Direction |
Coord.directionTo(Coord other) |
Determine the direction most aimed toward another coordinate.
|
static Direction |
Direction.forAxis(Axis axis,
int sign) |
Get the direction that has the given sign on the given axis.
|
static Direction |
Direction.forX(int sign) |
Get the direction that has the given sign on the x axis.
|
static Direction |
Direction.forY(int sign) |
Get the direction that has the given sign on the y axis.
|
Direction |
Direction.nextClockwise() |
Return the direction that is 90 degrees clockwise from this one.
|
Direction |
Direction.nextCounterclockwise() |
Return the direction that is 90 degrees counterclockwise from this one.
|
Direction |
Direction.opposite() |
The opposite direction.
|
static Direction |
Direction.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|