|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.proj.coords.ECEFPoint
public class ECEFPoint
From: http://www.commlinx.com.au/Datum%20Transformation%20Description.html :
The Cartesian coordinate frame of reference used in GPS/GLONASS is called Earth-Centered, Earth-Fixed (ECEF). ECEF uses three-dimensional XYZ coordinates (in meters) to describe the location of a GPS user or satellite. The term "Earth- Centered" comes from the fact that the origin of the axis (0,0,0) is located at the mass center of gravity (determined through years of tracking satellite trajectories). The term "Earth-Fixed" implies that the axes are fixed with respect to the earth (that is, they rotate with the earth). The Z-axis pierces the North Pole, and the XY-axis defines the equatorial plane (Figure 1).
ECEF coordinates are expressed in a reference system that is related to mapping representations. Because the earth has a complex shape, a simple, yet accurate, method to approximate the earth's shape is required. The use of a reference ellipsoid allows for the conversion of the ECEF coordinates to the more commonly used geodetic-mapping coordinates of Latitude, Longitude, and Altitude (LLA).
Field Summary | |
---|---|
protected static double |
EQUIVALENT_TOLERANCE
|
protected double |
x_
|
protected double |
y_
|
protected double |
z_
|
Constructor Summary | |
---|---|
ECEFPoint()
Construct a default ECEFPoint. |
|
ECEFPoint(double x,
double y,
double z)
Construct an ECEFPoint |
|
ECEFPoint(ECEFPoint pt)
Construct an ECEFPoint |
|
ECEFPoint(float x,
float y,
float z)
Construct an ECEFPoint |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether two ECEFPoints are equal. |
LatLonPoint |
getLatLon()
Return a LatLonPoint in WGS 84 |
java.awt.geom.Point2D |
getLatLon(Ellipsoid ellip,
java.awt.geom.Point2D ret)
Return a Point2D in the given Ellipsoid with longitude as x and
latitude as y |
LatLonPoint |
getLatLon(LatLonPoint instance)
Return a LatLonPoint in WGS 84 |
double |
getx()
Get x |
double |
gety()
Get y |
double |
getz()
Get z |
int |
hashCode()
|
static ECEFPoint |
LLtoECEF(LatLonPoint llpoint)
|
static ECEFPoint |
LLtoECEF(LatLonPoint llpoint,
ECEFPoint ecef)
|
void |
read(java.io.DataInputStream s)
Read object. |
void |
setECEF(double x,
double y,
double z)
Set x y z. |
void |
setECEF(ECEFPoint pt)
Set ECEFPoint. |
void |
setLatLon(double lat,
double lon,
Ellipsoid ellip)
Set an ECEFPoint from a Lat, Lon |
void |
setLatLon(float lat,
float lon)
Set an ECEFPoint from a Lat, Lon |
void |
setLatLon(LatLonPoint pt)
Set an ECEFPoint from a LatLonPoint |
void |
setx(double x)
Set x. |
void |
sety(double y)
Set y. |
void |
setz(double z)
Set z. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
write(java.io.DataOutputStream s)
Write object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static double EQUIVALENT_TOLERANCE
protected double x_
protected double y_
protected double z_
Constructor Detail |
---|
public ECEFPoint()
public ECEFPoint(double x, double y, double z)
public ECEFPoint(ECEFPoint pt)
pt
- ECEFPointpublic ECEFPoint(float x, float y, float z)
Method Detail |
---|
public static ECEFPoint LLtoECEF(LatLonPoint llpoint)
public static ECEFPoint LLtoECEF(LatLonPoint llpoint, ECEFPoint ecef)
public java.lang.String toString()
toString
in class java.lang.Object
public void setx(double x)
public void sety(double y)
public void setz(double z)
public void setECEF(double x, double y, double z)
public void setECEF(ECEFPoint pt)
public double getx()
public double gety()
public double getz()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object
public void write(java.io.DataOutputStream s) throws java.io.IOException
s
- DataOutputStream
java.io.IOException
public void read(java.io.DataInputStream s) throws java.io.IOException
s
- DataInputStream
java.io.IOException
public void setLatLon(LatLonPoint pt)
pt
- LatLonPointpublic void setLatLon(float lat, float lon)
public void setLatLon(double lat, double lon, Ellipsoid ellip)
public LatLonPoint getLatLon()
public LatLonPoint getLatLon(LatLonPoint instance)
public java.awt.geom.Point2D getLatLon(Ellipsoid ellip, java.awt.geom.Point2D ret)
Ellipsoid
with longitude as x and
latitude as y
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |