|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.util.grid.directiongroup.AbstractDirectionGroup
jtge.util.grid.directiongroup.AbstractSquareDirectionGroup
jtge.util.grid.directiongroup.FourDirectionGroup
Implements a direction group for four directions.
| Constructor Summary | |
FourDirectionGroup()
Create a direction group with four directions. |
|
| Method Summary | |
Coordinate |
transform(Coordinate coordinate,
NorthEast direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
NorthWest direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
SouthEast direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
SouthWest direction)
Retrieve the coordinate next to another in a given direction. |
| Methods inherited from class jtge.util.grid.directiongroup.AbstractSquareDirectionGroup |
transform, transform, transform, transform |
| Methods inherited from class jtge.util.grid.directiongroup.AbstractDirectionGroup |
add, getNames, getShortNames, iterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FourDirectionGroup()
| Method Detail |
public final Coordinate transform(Coordinate coordinate,
NorthEast direction)
coordinate - the origindirection - the direction
public final Coordinate transform(Coordinate coordinate,
NorthWest direction)
coordinate - the origindirection - the direction
public final Coordinate transform(Coordinate coordinate,
SouthEast direction)
coordinate - the origindirection - the direction
public final Coordinate transform(Coordinate coordinate,
SouthWest direction)
coordinate - the origindirection - the direction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||