public abstract static class GeoArray.Adapter extends java.lang.Object implements GeoArray
GeoArray.Adapter, GeoArray.Double, GeoArray.Float, GeoArray.Mutable
Constructor and Description |
---|
GeoArray.Adapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeArray, equals, get, get, getSize, removeDups
public Geo[] toPointArray()
toPointArray
in interface GeoArray
public double[] toLLDegrees()
toLLDegrees
in interface GeoArray
public double[] toLLRadians()
toLLRadians
in interface GeoArray
public double area()
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.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details