public class GeoPoint extends Vector implements SerializableObject
| 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_ANGULAR_RESOLUTION, 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 lat,
double lon,
double x,
double y,
double z)
Construct a GeoPoint from five unchecked parameters: lat, lon, x, y, z.
|
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(InputStream inputStream)
Construct a GeoPoint from an input stream with no planet model.
|
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.
|
GeoPoint(PlanetModel planetModel,
InputStream inputStream)
Construct a GeoPoint from an input stream.
|
| Modifier and Type | Method and Description |
|---|---|
double |
arcDistance(double x,
double y,
double z)
Compute an arc distance between two points.
|
double |
arcDistance(Vector 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.
|
boolean |
isIdentical(GeoPoint p)
Compute whether point matches another.
|
double |
magnitude()
Compute the linear magnitude of the point.
|
String |
toString() |
void |
write(OutputStream outputStream)
Serialize to output stream.
|
crossProductEvaluateIsZero, dotProduct, dotProduct, equals, hashCode, isNumericallyIdentical, isNumericallyIdentical, isParallel, isParallel, isWithin, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, magnitude, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, normalize, rotateXY, rotateXY, rotateXZ, rotateXZ, rotateZY, rotateZY, translateclone, finalize, getClass, notify, notifyAll, wait, wait, waitreadBitSet, readBoolean, readByteArray, readClass, readDouble, readHeterogeneousArray, readHomogeneousArray, readInt, readLong, readObject, readObject, readObject, readObject, readPlanetObject, readPointArray, readPolygonArray, readString, writeBitSet, writeBoolean, writeByteArray, writeClass, writeDouble, writeHeterogeneousArray, writeHeterogeneousArray, writeHomogeneousArray, writeHomogeneousArray, writeInt, writeLong, writeObject, writePlanetObject, writePointArray, writePointArray, writePolygonArray, writePolygonArray, writeStringprotected 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(PlanetModel planetModel, InputStream inputStream) throws IOException
planetModel - is the planet modelinputStream - is the input streamIOExceptionpublic GeoPoint(InputStream inputStream) throws IOException
inputStream - is the input streamIOExceptionpublic GeoPoint(double lat,
double lon,
double x,
double y,
double z)
lat - is the latitude in radianslon - is the longitude in radiansx - is the unit x valuey - is the unit y valuez - is the unit z valuepublic 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 void write(OutputStream outputStream) throws IOException
SerializableObjectwrite in interface SerializableObjectoutputStream - is the output stream to write to.IOExceptionpublic double arcDistance(Vector 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(GeoPoint p)
p - is the other point.public boolean isIdentical(double x,
double y,
double z)
x - is the x valuey - is the y valuez - is the z valueCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.