|
|||||||||||
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.AbstractPeakHexagonDirectionGroup
Abstract Hexagon Direction Group for Peak Hexagon Grid.
Constructor Summary | |
AbstractPeakHexagonDirectionGroup()
Create an asbtract direction group for peak hexagon grids. |
Method Summary | |
protected abstract boolean |
shift(Coordinate coordinate)
Test if a given coordinate must be shifted. |
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,
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,
South 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. |
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 |
Constructor Detail |
public AbstractPeakHexagonDirectionGroup()
Method Detail |
protected abstract boolean shift(Coordinate coordinate)
coordinate
- the coordinate
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
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
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |