gov.nasa.worldwindx.examples.lineofsight
Class GridOfPoints.PositionIterator
java.lang.Object
gov.nasa.worldwindx.examples.lineofsight.GridOfPoints.PositionIterator
- All Implemented Interfaces:
- Iterator<Position>
- Enclosing class:
- GridOfPoints
protected static class GridOfPoints.PositionIterator
- extends Object
- implements Iterator<Position>
Generates positions forming a lat/lon grid.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
corners
protected List<Position> corners
h
protected int h
ne
protected Position ne
numHigh
protected int numHigh
numWide
protected int numWide
nw
protected Position nw
se
protected Position se
sw
protected Position sw
w
protected int w
GridOfPoints.PositionIterator
public GridOfPoints.PositionIterator(List<Position> corners,
int numPointsWide,
int numPointsHigh)
computeNextPosition
protected Position computeNextPosition()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<Position>
next
public Position next()
- Specified by:
next in interface Iterator<Position>
remove
public void remove()
- Specified by:
remove in interface Iterator<Position>