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, toText
public 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)
double
unit
- the length unit of the x coordinate value to return.public double yValue(Unit<Length> unit)
double
unit
- the length unit of the x coordinate value to return.public double zValue(Unit<Length> unit)
double
unit
- 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()
Coordinates
getCoordinateReferenceSystem
in class Coordinates<GeocentricCRS<XYZ>>
public int getDimension()
Coordinates
getDimension
in class Coordinates<GeocentricCRS<XYZ>>
public double getOrdinate(int dimension) throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate
in class Coordinates<GeocentricCRS<XYZ>>
dimension
- The dimension in the range 0 to
dimension-1.java.lang.IndexOutOfBoundsException
- if the specified dimension is out
of bounds.public XYZ copy()
Coordinates
allocated
by the calling thread (possibly on the stack).copy
in interface javolution.lang.ValueType
copy
in class Coordinates<GeocentricCRS<XYZ>>