public class CoordinateConversions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DEGREES_TO_RADIANS |
static double |
RADIANS_TO_DEGREES |
Modifier and Type | Method and Description |
---|---|
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).
|
public static final double RADIANS_TO_DEGREES
public static final double DEGREES_TO_RADIANS
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 meterspublic static double[] getXYZfromLatLonDegrees(double latitude, double longitude, double height)
latitude
- The latitude, IN DEGREESlongitude
- The longitude, in DEGREESheight
- The elevation, in meters