|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.disutil.CoordinateConversions
public class CoordinateConversions
Converts DIS (x,y,z) rectilinear coordinates (earth-centered RH coordinate system) to latitude and longitude, in radians.
Field Summary | |
---|---|
static double |
DEGREES_TO_RADIANS
|
static double |
RADIANS_TO_DEGREES
|
Method Summary | |
---|---|
static double[] |
getXYZfromLatLonDegrees(double latitude,
double longitude,
double height)
Converts lat long IN DEGREES and geodetic height (elevation) into DIS XYZ This algorithm also uses the WGS84 ellipsoid, though you can change the values of a and b for a different ellipsoid. |
static double[] |
getXYZfromLatLonRadians(double latitude,
double longitude,
double height)
Converts lat long and geodetic height (elevation) into DIS XYZ This algorithm also uses the WGS84 ellipsoid, though you can change the values of a and b for a different ellipsoid. |
static double[] |
xyzToLatLonDegrees(double[] xyz)
Converts DIS xyz world coordinates to latitude and longitude (IN DEGREES). |
static double[] |
xyzToLatLonRadians(double[] xyz)
Converts DIS xyz world coordinates to latitude and longitude (IN RADIANS). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double RADIANS_TO_DEGREES
public static final double DEGREES_TO_RADIANS
Method Detail |
---|
public static double[] xyzToLatLonRadians(double[] xyz)
xyz
- A double array with the x, y, and z coordinates, in that order.
public static double[] xyzToLatLonDegrees(double[] xyz)
xyz
- A double array with the x, y, and z coordinates, in that order.
public static double[] getXYZfromLatLonRadians(double latitude, double longitude, double height)
latitude
- The latitude, IN RADIANSlongitude
- The longitude, in RADIANSheight
- The elevation, in meters
public static double[] getXYZfromLatLonDegrees(double latitude, double longitude, double height)
latitude
- The latitude, IN DEGREESlongitude
- The longitude, in DEGREESheight
- The elevation, in meters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |