|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.geom.coords.UPSConverter
public class UPSConverter
Ported to Java from the NGA GeoTrans ups.c and ups.h code
| Field Summary | |
|---|---|
static int |
UPS_EASTING_ERROR
|
static int |
UPS_HEMISPHERE_ERROR
|
static int |
UPS_NO_ERROR
|
static int |
UPS_NORTHING_ERROR
|
| Method Summary | |
|---|---|
static long |
convertGeodeticToUPS(double latitude,
double longitude)
The function convertGeodeticToUPS converts geodetic (latitude and longitude) coordinates to UPS (hemisphere, easting, and northing) coordinates, according to the current ellipsoid parameters. |
static long |
convertUPSToGeodetic(char Hemisphere,
double Easting,
double Northing)
The function Convert_UPS_To_Geodetic converts UPS (hemisphere, easting, and northing) coordinates to geodetic (latitude and longitude) coordinates according to the current ellipsoid parameters. |
static double |
getEasting()
|
static char |
getHemisphere()
|
static double |
getLatitude()
|
static double |
getLongitude()
|
static double |
getNorthing()
|
static long |
SetUPSParameters(double a,
double f)
The function SetUPSParameters receives the ellipsoid parameters and sets the corresponding state variables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UPS_EASTING_ERROR
public static final int UPS_HEMISPHERE_ERROR
public static final int UPS_NO_ERROR
public static final int UPS_NORTHING_ERROR
| Method Detail |
|---|
public static long convertGeodeticToUPS(double latitude,
double longitude)
latitude - Latitude in radianslongitude - Longitude in radians
public static long convertUPSToGeodetic(char Hemisphere,
double Easting,
double Northing)
Hemisphere - Hemisphere either 'N' or 'S'Easting - Easting/X in metersNorthing - Northing/Y in meters
public static double getEasting()
public static char getHemisphere()
public static double getLatitude()
public static double getLongitude()
public static double getNorthing()
public static long SetUPSParameters(double a,
double f)
a - Semi-major axis of ellipsoid in metersf - Flattening of ellipsoid
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||