|
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.UTMCoord
public class UTMCoord
This immutable class holds a set of UTM coordinates along with it's corresponding latitude and longitude.
| Constructor Summary | |
|---|---|
UTMCoord(Angle latitude,
Angle longitude,
int zone,
char hemisphere,
double easting,
double northing)
Create an arbitrary set of UTM coordinates with the given values. |
|
| Method Summary | |
|---|---|
static UTMCoord |
fromLatLon(Angle latitude,
Angle longitude)
Create a set of UTM coordinates from a pair of latitude and longitude for a WGS84 globe. |
static UTMCoord |
fromLatLon(Angle latitude,
Angle longitude,
Globe globe)
Create a set of UTM coordinates from a pair of latitude and longitude for the given Globe. |
static UTMCoord |
fromUTM(int zone,
char hemisphere,
double easting,
double northing)
Create a set of UTM coordinates for a WGS84 globe. |
static UTMCoord |
fromUTM(int zone,
char hemisphere,
double easting,
double northing,
Globe globe)
Create a set of UTM coordinates for the given Globe. |
double |
getEasting()
|
char |
getHemisphere()
|
Angle |
getLatitude()
|
Angle |
getLongitude()
|
double |
getNorthing()
|
int |
getZone()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UTMCoord(Angle latitude,
Angle longitude,
int zone,
char hemisphere,
double easting,
double northing)
latitude - the latitude Angle.longitude - the longitude Angle.zone - the UTM zone - 1 to 60.hemisphere - the hemisphere 'N' or 'S'.easting - the easting distance in metersnorthing - the northing distance in meters.
IllegalArgumentException - if latitude or longitude is null.| Method Detail |
|---|
public static UTMCoord fromLatLon(Angle latitude,
Angle longitude)
latitude - the latitude Angle.longitude - the longitude Angle.
UTMCoord.
IllegalArgumentException - if latitude or longitude is null,
or the conversion to UTM coordinates fails.
public static UTMCoord fromLatLon(Angle latitude,
Angle longitude,
Globe globe)
Globe.
latitude - the latitude Angle.longitude - the longitude Angle.globe - the Globe - can be null (will use WGS84).
UTMCoord.
IllegalArgumentException - if latitude or longitude is null,
or the conversion to UTM coordinates fails.
public static UTMCoord fromUTM(int zone,
char hemisphere,
double easting,
double northing)
zone - the UTM zone - 1 to 60.hemisphere - the hemisphere 'N' or 'S'.easting - the easting distance in metersnorthing - the northing distance in meters.
UTMCoord.
IllegalArgumentException - if the conversion to UTM coordinates fails.
public static UTMCoord fromUTM(int zone,
char hemisphere,
double easting,
double northing,
Globe globe)
Globe.
zone - the UTM zone - 1 to 60.hemisphere - the hemisphere 'N' or 'S'.easting - the easting distance in metersnorthing - the northing distance in meters.globe - the Globe - can be null (will use WGS84).
UTMCoord.
IllegalArgumentException - if the conversion to UTM coordinates fails.public double getEasting()
public char getHemisphere()
public Angle getLatitude()
public Angle getLongitude()
public double getNorthing()
public int getZone()
public String toString()
toString in class Object
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||