public class GeoPoint extends Vector
| Modifier and Type | Field and Description | 
|---|---|
protected double | 
latitude
Lazily-evaluated latitude. 
 | 
protected double | 
longitude
Lazily-evaluated longitude. 
 | 
protected double | 
magnitude
This is the lazily-evaluated magnitude. 
 | 
MINIMUM_RESOLUTION, MINIMUM_RESOLUTION_CUBED, MINIMUM_RESOLUTION_SQUARED, x, y, z| Constructor and Description | 
|---|
GeoPoint(double x,
        double y,
        double z)
Construct a GeoPoint from an (x,y,z) value. 
 | 
GeoPoint(double magnitude,
        double x,
        double y,
        double z)
Construct a GeoPoint from a unit (x,y,z) vector and a magnitude. 
 | 
GeoPoint(double magnitude,
        double x,
        double y,
        double z,
        double lat,
        double lon)
Construct a GeoPoint from a unit (x,y,z) vector and a magnitude. 
 | 
GeoPoint(PlanetModel planetModel,
        double lat,
        double lon)
Construct a GeoPoint from a latitude/longitude pair. 
 | 
GeoPoint(PlanetModel planetModel,
        double sinLat,
        double sinLon,
        double cosLat,
        double cosLon)
Construct a GeoPoint from the trig functions of a lat and lon pair. 
 | 
GeoPoint(PlanetModel planetModel,
        double sinLat,
        double sinLon,
        double cosLat,
        double cosLon,
        double lat,
        double lon)
Construct a GeoPoint from the trig functions of a lat and lon pair. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
arcDistance(double x,
           double y,
           double z)
Compute an arc distance between two points. 
 | 
double | 
arcDistance(GeoPoint v)
Compute an arc distance between two points. 
 | 
double | 
getLatitude()
Compute the latitude for the point. 
 | 
double | 
getLongitude()
Compute the longitude for the point. 
 | 
boolean | 
isIdentical(double x,
           double y,
           double z)
Compute whether point matches another. 
 | 
double | 
magnitude()
Compute the linear magnitude of the point. 
 | 
String | 
toString()  | 
computeDesiredEllipsoidMagnitude, computeDesiredEllipsoidMagnitude, dotProduct, dotProduct, equals, hashCode, isWithin, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, magnitude, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, normalize, rotateXY, rotateXY, rotateXZ, rotateXZ, rotateZY, rotateZY, translateprotected volatile double magnitude
protected volatile double latitude
protected volatile double longitude
public GeoPoint(PlanetModel planetModel, double sinLat, double sinLon, double cosLat, double cosLon, double lat, double lon)
planetModel - is the planetModel to put the point on.sinLat - is the sin of the latitude.sinLon - is the sin of the longitude.cosLat - is the cos of the latitude.cosLon - is the cos of the longitude.lat - is the latitude.lon - is the longitude.public GeoPoint(PlanetModel planetModel, double sinLat, double sinLon, double cosLat, double cosLon)
planetModel - is the planetModel to put the point on.sinLat - is the sin of the latitude.sinLon - is the sin of the longitude.cosLat - is the cos of the latitude.cosLon - is the cos of the longitude.public GeoPoint(PlanetModel planetModel, double lat, double lon)
planetModel - is the planetModel to put the point on.lat - is the latitude.lon - is the longitude.public GeoPoint(double magnitude,
        double x,
        double y,
        double z,
        double lat,
        double lon)
magnitude - is the desired magnitude, provided to put the point on the ellipsoid.x - is the unit x value.y - is the unit y value.z - is the unit z value.lat - is the latitude.lon - is the longitude.public GeoPoint(double magnitude,
        double x,
        double y,
        double z)
magnitude - is the desired magnitude, provided to put the point on the ellipsoid.x - is the unit x value.y - is the unit y value.z - is the unit z value.public GeoPoint(double x,
        double y,
        double z)
x - is the ellipsoid point x value.y - is the ellipsoid point y value.z - is the ellipsoid point z value.public double arcDistance(GeoPoint v)
PlanetModel.surfaceDistance(GeoPoint, GeoPoint)v - is the second point.public double arcDistance(double x,
                 double y,
                 double z)
x - is the x part of the second point.y - is the y part of the second point.z - is the z part of the second point.public double getLatitude()
public double getLongitude()
public double magnitude()
public boolean isIdentical(double x,
                  double y,
                  double z)
x - is the x valuey - is the y valuez - is the z valueCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.