|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.Coordinates<GeocentricCRS<XYZ>>
org.jscience.geography.coordinates.XYZ
public final class XYZ
This class represents the geocentric Earth-Centered,
Earth-Fixed (ECEF) cartesian coordinates used in GPS/GLONASS.
| Field Summary | |
|---|---|
static GeocentricCRS<XYZ> |
CRS
Holds the coordinate reference system for all instances of this class. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.jscience.geography.coordinates.Coordinates |
|---|
clone, getCoordinates, getPosition, setOrdinate, toString, toText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final GeocentricCRS<XYZ> CRS
| Method Detail |
|---|
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 interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<GeocentricCRS<XYZ>>public int getDimension()
Coordinates
getDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<GeocentricCRS<XYZ>>
public double getOrdinate(int dimension)
throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate 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()
Coordinatesallocated
by the calling thread (possibly on the stack).
copy in interface ValueTypecopy in class Coordinates<GeocentricCRS<XYZ>>
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||