|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmaze.geometry.GeoDirectionIterator
Iterates through the cardinal directions of this geometry. For a simple rectangluar geometry these are the positive and negative horizontal directions and the positive and negative vertical directions. These directions are ordered clockwise.
| Constructor Summary | |
GeoDirectionIterator(int m)
Constructs a new direction iterator for a given number of directions. |
|
| Method Summary | |
boolean |
hasMoreDirections()
Returns true if this iterator has more directions. |
int |
nextDirection()
Returns the next direction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeoDirectionIterator(int m)
m - int maximum number of directions.| Method Detail |
public boolean hasMoreDirections()
public int nextDirection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||