public class Position
extends java.lang.Object
toString() method because a Position needs to be
part of a CoordinateSystem to have a meaningful String representation.
Instances of this class are immutable.
| Constructor and Description |
|---|
Position(LatLong geo,
double ellipsoidHeight,
Ellipsoid sphere,
Datum datum)
Create a new Position using Lat/Long relative to a specified Ellipsoid and Datum
|
Position(XYZ point,
Datum datum)
Creates a new instance of Position based on cartesian coordinates relative to the
specified Datum.
|
| Modifier and Type | Method and Description |
|---|---|
XYZ |
coords(Datum datum)
Get the cartesian coordinates of this Position relative to a specified Datum
|
double |
ellipsoidHeight(Ellipsoid sphere,
Datum datum)
Calculate the height of this Position above the specified Ellipsoid.
|
boolean |
equals(java.lang.Object o)
Compare this Position with another Object
|
LatLong |
toLatLong(Ellipsoid sphere,
Datum datum)
Get the LatLong of this Position relative to specified Ellipsoid and Datum
|
public Position(XYZ point, Datum datum)
point - XYZ coordinates of this position relative to the specified Datumdatum - The Datum used as the basis of the cartesian coordinatespublic Position(LatLong geo, double ellipsoidHeight, Ellipsoid sphere, Datum datum)
geo - LatLong of the pointellipsoidHeight - Height above the Ellipsoid of this point (double)sphere - The Ellipsoid against which this Lat & Lon are defineddatum - The Datum used to measure the Lat & Lonpublic XYZ coords(Datum datum)
datum - The Datum against which to measure the Positionpublic LatLong toLatLong(Ellipsoid sphere, Datum datum)
sphere - The Ellipsoid to use as referencedatum - The Datum to measure relative topublic double ellipsoidHeight(Ellipsoid sphere, Datum datum)
sphere - The Ellipsoid from which to calculate the heightdatum - The Datum defining the location of the Ellipsoidpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The Object to compare with