|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.util.grid.torus.CompleteTorus
Acts as a torus in both the vertical and horizontal directions.
Constructor Summary | |
CompleteTorus(int width,
int height)
Create a complete torus. |
Method Summary | |
Coordinate |
transform(Coordinate coordinate)
Modifiy the coordinate according to the Torus implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompleteTorus(int width, int height)
width
- torus width in tilesheight
- torus height in tilesMethod Detail |
public final Coordinate transform(Coordinate coordinate)
transform
in interface ITorus
coordinate
- the coordinate to transform
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |