|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.jstott.jcoord.CoordinateSystem
uk.me.jstott.jcoord.ECEFRef
public class ECEFRef
This class is part of the Jcoord package. Visit the Jcoord website for more information.
ECEF (earth-centred, earth-fixed) Cartesian co-ordinates are used to define a point in three-dimensional space. ECEF co-ordinates are defined relative to an x-axis (the intersection of the equatorial plane and the plane defined by the prime meridian), a y-axis (at 90° to the x-axis and its intersection with the equator) and a z-axis (intersecting the North Pole). All the axes intersect at the point defined by the centre of mass of the Earth.
(c) 2006 Jonathan Stott
Created on 02-Apr-2006
Constructor Summary | |
---|---|
ECEFRef(double x,
double y,
double z)
Create a new earth-centred, earth-fixed (ECEF) reference from the given parameters using the WGS84 reference ellipsoid. |
|
ECEFRef(double x,
double y,
double z,
Datum datum)
Create a new earth-centred, earth-fixed (ECEF) reference from the given parameters and the given reference ellipsoid. |
|
ECEFRef(LatLng ll)
Create a new earth-centred, earth-fixed reference from the given latitude and longitude. |
Method Summary | |
---|---|
double |
getX()
Get the x co-ordinate. |
double |
getY()
Get the y co-ordinate. |
double |
getZ()
Get the z co-ordinate. |
void |
setX(double x)
Set the x co-ordinate. |
void |
setY(double y)
Set the y co-ordinate. |
void |
setZ(double z)
Set the z co-ordinate. |
LatLng |
toLatLng()
Convert this ECEFRef object to a LatLng object. |
java.lang.String |
toString()
Get a String representation of this ECEF reference. |
Methods inherited from class uk.me.jstott.jcoord.CoordinateSystem |
---|
getDatum, setDatum |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ECEFRef(double x, double y, double z)
x
- the x co-ordinate.y
- the y co-ordinate.z
- the z co-ordinate.public ECEFRef(double x, double y, double z, Datum datum)
x
- the x co-ordinate.y
- the y co-ordinate.z
- the z co-ordinate.datum
- the datum.public ECEFRef(LatLng ll)
ll
- latitude and longitude.Method Detail |
---|
public LatLng toLatLng()
toLatLng
in class CoordinateSystem
public double getX()
public double getY()
public double getZ()
public void setX(double x)
x
- the new x co-ordinate.public void setY(double y)
y
- the y co-ordinate.public void setZ(double z)
z
- the z co-ordinate.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |