protected static class GridOfPoints.PositionIterator extends java.lang.Object implements java.util.Iterator<Position>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Position> |
corners |
protected int |
h |
protected Position |
ne |
protected int |
numHigh |
protected int |
numWide |
protected Position |
nw |
protected Position |
se |
protected Position |
sw |
protected int |
w |
Constructor and Description |
---|
PositionIterator(java.util.List<Position> corners,
int numPointsWide,
int numPointsHigh) |
Modifier and Type | Method and Description |
---|---|
protected Position |
computeNextPosition() |
boolean |
hasNext() |
Position |
next() |
void |
remove() |
protected java.util.List<Position> corners
protected int h
protected Position ne
protected int numHigh
protected int numWide
protected Position nw
protected Position se
protected Position sw
protected int w
public PositionIterator(java.util.List<Position> corners, int numPointsWide, int numPointsHigh)