|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.geo.GeoArray.Adapter
public abstract static class GeoArray.Adapter
An abstract parent implementation class of GeoArray that handles common methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.bbn.openmap.geo.GeoArray |
---|
GeoArray.Adapter, GeoArray.Double, GeoArray.Float, GeoArray.Mutable |
Constructor Summary | |
---|---|
GeoArray.Adapter()
|
Method Summary | |
---|---|
double |
area()
Computes the area of a polygon on the surface of a unit sphere. |
double |
distance(Geo pnt,
Geo closestPoint)
Returns the perpendicular distance to the closest point on the edge of the polygon. |
double[] |
toLLDegrees()
Convert the GeoArray to an array of decimal degree values, alternating lat, lon, lat, lon. |
double[] |
toLLRadians()
Convert the GeoArray to an array of radian values, alternating lat, lon, lat, lon. |
Geo[] |
toPointArray()
Convert the GeoArray to an array of Geos. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.geo.GeoArray |
---|
closeArray, equals, get, get, getSize, removeDups |
Constructor Detail |
---|
public GeoArray.Adapter()
Method Detail |
---|
public Geo[] toPointArray()
toPointArray
in interface GeoArray
public double[] toLLDegrees()
toLLDegrees
in interface GeoArray
public double[] toLLRadians()
toLLRadians
in interface GeoArray
public double area()
area
in interface GeoArray
public double distance(Geo pnt, Geo closestPoint)
distance
in interface GeoArray
pnt
- the point to test against the polyclosestPoint
- if not null, will be set with the location of the
point on the poly closest to pnt, you can read this object after
this method call to get coordinates.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |