|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.util.grid.directiongroup.AbstractDirectionGroup jtge.util.grid.directiongroup.AbstractSquareDirectionGroup
Provides square direction groups common behaviours.
Constructor Summary | |
AbstractSquareDirectionGroup()
|
Method Summary | |
Coordinate |
transform(Coordinate coordinate,
East direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
North direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
South direction)
Retrieve the coordinate next to another in a given direction. |
Coordinate |
transform(Coordinate coordinate,
West direction)
Retrieve the coordinate next to another in a given direction. |
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 |
Methods inherited from interface jtge.util.grid.directiongroup.IDirectionGroup |
transform, transform, transform, transform |
Constructor Detail |
public AbstractSquareDirectionGroup()
Method Detail |
public final Coordinate transform(Coordinate coordinate, West direction)
coordinate
- the origindirection
- the direction
public final Coordinate transform(Coordinate coordinate, East direction)
coordinate
- the origindirection
- the direction
public final Coordinate transform(Coordinate coordinate, North direction)
coordinate
- the origindirection
- the direction
public final Coordinate transform(Coordinate coordinate, South direction)
coordinate
- the origindirection
- the direction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |