|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.geo.RibbonIterator
public class RibbonIterator
Iterate along a sequence of Ribbons. A Ribbon is a three Geo set, with a RIGHT, CENTER and LEFT Geo in the Ribbon. The location of the LEFT and RIGHT Geo are perpendicular to the great circle path that the CENTER Geo resides on.
Field Summary | |
---|---|
protected double |
distance
|
protected Geo |
gc
|
protected Geo |
point
|
protected double |
radius
|
protected Rotation |
rotator
|
protected Geo |
v1
|
protected Geo |
v2
|
Constructor Summary | |
---|---|
RibbonIterator(Geo v1,
Geo v2,
double radius)
Return an iterator that returns Ribbons along the great circle between v1 and v2. |
|
RibbonIterator(Geo v1,
Geo v2,
double radius,
double rotationIntervalDist)
Return an iterator that returns Ribbons along the great circle between v1 and v2. |
Method Summary | |
---|---|
boolean |
hasNext()
Are there more Ribbons in the iterator? |
java.util.Iterator<Ribbon> |
iterator()
|
Ribbon |
next()
Call after hasNext() returns true. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Geo v1
protected Geo v2
protected double radius
protected Geo gc
protected Rotation rotator
protected Geo point
protected double distance
Constructor Detail |
---|
public RibbonIterator(Geo v1, Geo v2, double radius)
public RibbonIterator(Geo v1, Geo v2, double radius, double rotationIntervalDist)
v1
- from this Geov2
- to this Georadius
- distance away from great circle lines between geos, in
radians.rotationIntervalDist
- interval distance between ribbons, in
radians. You want this to be smaller than the distance between the
geos, obviously.Method Detail |
---|
public Ribbon next()
next
in interface java.util.Iterator<Ribbon>
public boolean hasNext()
hasNext
in interface java.util.Iterator<Ribbon>
public void remove()
remove
in interface java.util.Iterator<Ribbon>
public java.util.Iterator<Ribbon> iterator()
iterator
in interface java.lang.Iterable<Ribbon>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |