protected static class ForwardLineOfOwnTroops.PositionIterator extends java.lang.Object implements java.util.Iterator<Position>
Modifier and Type | Field and Description |
---|---|
protected Angle |
interval
Wavelength, as a geographic angle.
|
protected Position |
nextControlPosition
Position of the next control point.
|
protected java.util.Iterator<? extends Position> |
positions
Control positions.
|
protected Position |
thisPosition
Current position.
|
protected double |
tolerance |
Modifier | Constructor and Description |
---|---|
protected |
PositionIterator(java.lang.Iterable<? extends Position> positions,
double interval,
Globe globe)
Create a new iterator to compute the positions of a triangle wave.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Position |
next() |
void |
remove()
Not supported.
|
protected Angle interval
protected Position nextControlPosition
protected java.util.Iterator<? extends Position> positions
protected Position thisPosition
protected double tolerance
protected PositionIterator(java.lang.Iterable<? extends Position> positions, double interval, Globe globe)
positions
- Control positions for the triangle wave line.interval
- Generate positions along the control line at this interval.globe
- Globe used to compute geographic positions.