|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdriver.ted.utilities.T_Site
public class T_Site
Title: T_Site
Description: This class maintains its coordinates in ECEF XYZ and spherical geodetic (lat, lon,
height). Whenever a coordinate is set or changed, a conversion is made so that the coordinates
in both frames are always up to date.
Copyright: (c) 2002 - 2006
Change History:
| Constructor Summary | |
|---|---|
T_Site()
Default Constructor, initializes X, Y, Z and latitude, longitude and height to 0.0. |
|
T_Site(double initialX,
double initialY,
double initialZ)
Constructor sets X, Y and Z. |
|
| Method Summary | |
|---|---|
double |
getHeight()
Returns the current geodetic height value. |
double |
getLatitude()
Returns the current geodetic latitude value. |
double |
getLongitude()
Returns the current geodetic longitude value. |
double |
getX()
Returns the current Earth-Centered-Earth-Fixed (ECEF) X coordinate. |
double |
getY()
Returns the current Earth-Centered-Earth-Fixed (ECEF) Y coordinate. |
double |
getZ()
Returns the current Earth-Centered-Earth-Fixed (ECEF) Z coordinate. |
static void |
main(java.lang.String[] args)
Executable program to test the T_Site functionality. |
void |
setHeight(double newHeight)
Sets the geodetic height value. |
void |
setLatitude(double newLatitude)
Sets the geodetic latitude value. |
void |
setLatLonHeight(double newLatitude,
double newLongitude,
double newHeight)
Sets the geodetic latitude, longitude and height values. |
void |
setLongitude(double newLongitude)
Sets the geodetic longitude value. |
void |
setX(double newX)
Sets the ECEF X coordinate. |
void |
setXYZ(double newX,
double newY,
double newZ)
Sets the ECEF X, Y and Z coordinates. |
void |
setY(double newY)
Sets the ECEF Y coordinate. |
void |
setZ(double newZ)
Sets the ECEF Z coordinate. |
java.lang.String |
toString()
Returns a listing of the sites coordinates in ECEF and Geocentric formats. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public T_Site()
public T_Site(double initialX,
double initialY,
double initialZ)
initialX - The initial X valueinitialY - The initial Y valueinitialZ - The initial Z value| Method Detail |
|---|
public double getLongitude()
(0,2*PI].
0 and 2*PI.public double getLatitude()
(-PI/2, PI/2).
-PI/2 and PI/2.public double getHeight()
public double getX()
public double getY()
public double getZ()
public void setLongitude(double newLongitude)
newLongitude - The new longitude value. The longitude value must be in radians.public void setLatitude(double newLatitude)
newLatitude - The new latitude value. The latitude value must be in radians.public void setHeight(double newHeight)
newHeight - The new height value. The height value must be in meters and must be larger than -T_Utilities.EarthEquatorialRadius.
If the height is less than this value it will be set to -T_Utilities.EarthEquatorialRadius.public void setX(double newX)
newX - The new X coordinate value. The X value must be in meters.public void setY(double newY)
newY - The new Y coordinate value. The Y value must be in meters.public void setZ(double newZ)
newZ - The new Z coordinate value. The Z value must be in meters.
public void setLatLonHeight(double newLatitude,
double newLongitude,
double newHeight)
newLatitude - The new latitude value. The latitude value must be in radians.newLongitude - The new longitude value. The longitude value must be in radians.newHeight - The new height value. The height value must be in meters and must be larger than -T_Utilities.EarthEquatorialRadius.
If the height is less than this value it will be set to -T_Utilities.EarthEquatorialRadius.
public void setXYZ(double newX,
double newY,
double newZ)
newX - The new X coordinate value. The X value must be in meters and may not be negative.
If X is negative, it will be set to zero (0).newY - The new Y coordinate value. The Y value must be in meters and may not be negative.
If Y is negative, it will be set to zero (0).newZ - The new Z coordinate value. The Z value must be in meters and may not be negative.
If Z is negative, it will be set to zero (0).public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - Argument string. Not needed for this function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||