public final class XYZ extends Coordinates<GeocentricCRS<XYZ>>
geocentric Earth-Centered,
Earth-Fixed (ECEF) cartesian coordinates used in GPS/GLONASS.| Modifier and Type | Field and Description |
|---|---|
static GeocentricCRS<XYZ> |
CRS
Holds the coordinate reference system for all instances of this class.
|
| Modifier and Type | Method and Description |
|---|---|
XYZ |
copy()
Returns a copy of these coordinates
allocated
by the calling thread (possibly on the stack). |
GeocentricCRS<XYZ> |
getCoordinateReferenceSystem()
Returns the reference system for this coordinates.
|
int |
getDimension()
OpenGIS® - The length of coordinate sequence (the number of entries).
|
double |
getOrdinate(int dimension)
OpenGIS® - Returns the ordinate at the specified dimension.
|
Float64Vector |
toVector(Unit<Length> unit)
Returns the x/y/z coordinates value as a 3-dimensional vector.
|
static XYZ |
valueOf(double x,
double y,
double z,
Unit<Length> unit)
Returns the spatial position corresponding to the specified coordinates.
|
static XYZ |
valueOf(Float64Vector vector,
Unit<Length> unit)
Returns the spatial position corresponding to the specified
3-dimensional vector.
|
double |
xValue(Unit<Length> unit)
Returns the x coordinate value as
double |
double |
yValue(Unit<Length> unit)
Returns the y coordinate value as
double |
double |
zValue(Unit<Length> unit)
Returns the z coordinate value as
double |
clone, getCoordinates, getPosition, setOrdinate, toString, toTextpublic static final GeocentricCRS<XYZ> CRS
public static XYZ valueOf(double x, double y, double z, Unit<Length> unit)
x - the x value stated in the specified unit.y - the y value stated in the specified unit.z - the z value stated in the specified unit.unit - the length unit in which the coordinates are stated.public static XYZ valueOf(Float64Vector vector, Unit<Length> unit)
vector - the 3-dimensional vector holding the x/y/z coordinates.unit - the length unit in which the coordinates are stated.public double xValue(Unit<Length> unit)
doubleunit - the length unit of the x coordinate value to return.public double yValue(Unit<Length> unit)
doubleunit - the length unit of the x coordinate value to return.public double zValue(Unit<Length> unit)
doubleunit - the length unit of the x coordinate value to return.public Float64Vector toVector(Unit<Length> unit)
unit - the length unit of the vector coordinates.public GeocentricCRS<XYZ> getCoordinateReferenceSystem()
CoordinatesgetCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<GeocentricCRS<XYZ>>public int getDimension()
CoordinatesgetDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<GeocentricCRS<XYZ>>public double getOrdinate(int dimension)
throws IndexOutOfBoundsException
CoordinatesgetOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate in class Coordinates<GeocentricCRS<XYZ>>dimension - The dimension in the range 0 to
dimension-1.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public XYZ copy()
Coordinatesallocated
by the calling thread (possibly on the stack).copy in interface javolution.lang.ValueTypecopy in class Coordinates<GeocentricCRS<XYZ>>