|
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.LatLon
public class LatLon
Represents a point on the two-dimensional surface of a globe. Latitude is the degrees North and ranges between [-90, 90], while longitude refers to degrees East, and ranges between (-180, 180].
Instances ofLatLon are immutable.
| Constructor Summary | |
|---|---|
LatLon(Angle latitude,
Angle longitude)
Contructs a new LatLon from two angles. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
static LatLon |
fromDegrees(double latitude,
double longitude)
Factory method for obtaining a new LatLon from two angles expressed in degrees. |
static LatLon |
fromRadians(double latitude,
double longitude)
Factor method for obtaining a new LatLon from two angles expressed in radians. |
Angle |
getLatitude()
Obtains the latitude of this LatLon. |
Angle |
getLongitude()
Obtains the longitude of this LatLon. |
int |
hashCode()
|
static LatLon |
interpolate(double t,
LatLon begin,
LatLon end)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LatLon(Angle latitude,
Angle longitude)
LatLon from two angles. Neither angle may be null.
latitude - longitude -
IllegalArgumentException - if latitude or longitude is null| Method Detail |
|---|
public boolean equals(Object o)
equals in class Object
public static LatLon fromDegrees(double latitude,
double longitude)
LatLon from two angles expressed in degrees.
latitude - in degreeslongitude - in degrees
LatLon from the given angles, which are expressed as degrees
public static LatLon fromRadians(double latitude,
double longitude)
LatLon from two angles expressed in radians.
latitude - in radianslongitude - in radians
LatLon from the given angles, which are expressed as radianspublic final Angle getLatitude()
LatLon.
LatLon's latitudepublic final Angle getLongitude()
LatLon.
LatLon's longitudepublic int hashCode()
hashCode in class Object
public static LatLon interpolate(double t,
LatLon begin,
LatLon end)
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 | ||||||||