|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_LatitudeLongitude<Longitude>
uavsim.datatypes.Longitude
public class Longitude
Defines longitude in terms of Universal Transverse Mercator (UTM) coordinates. Only the western hemisphere is currently supported.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uavsim.datatypes.A_LatitudeLongitude |
|---|
A_LatitudeLongitude.E_Format |
| Field Summary | |
|---|---|
private static int |
DEGREES_MODULO
the degrees in a hemisphere |
| Fields inherited from class uavsim.datatypes.A_LatitudeLongitude |
|---|
_degrees, _minutes, _seconds, MINUTES_PER_DEGREE, SECONDS_PER_MINUTE |
| Constructor Summary | |
|---|---|
Longitude(double encoding)
Creates a longitude object from the decimal encoding format. |
|
Longitude(double encoding,
A_LatitudeLongitude.E_Format format)
Creates a longitude object. |
|
Longitude(int degrees,
int minutes,
double seconds)
Creates a longitude object. |
|
| Method Summary | |
|---|---|
Longitude |
add_(Longitude longitude)
Adds another unit to this one. |
java.lang.String |
formatString(boolean isPadded)
Formats the longitude appropriately. |
Longitude |
round(Longitude image)
Rounds the coordinate to the nearest degree, minute, or second. |
Longitude |
subtract_(Longitude longitude)
Subtract another unit from this one. |
java.lang.String |
toString()
|
| Methods inherited from class uavsim.datatypes.A_LatitudeLongitude |
|---|
compareTo, formatString, getDecimalEncoding, getDegrees, getMinutes, getMinutesAndSeconds, getSeconds, getSecondsInt, getSecondsTenth, getValue_, round2 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int DEGREES_MODULO
| Constructor Detail |
|---|
public Longitude(double encoding)
encoding - - the encoding
public Longitude(double encoding,
A_LatitudeLongitude.E_Format format)
encoding - - the encodingformat - - the encoding format
public Longitude(int degrees,
int minutes,
double seconds)
degrees - - the degrees (western hemisphere only)minutes - - the minutesseconds - - the seconds| Method Detail |
|---|
public Longitude add_(Longitude longitude)
longitude - - the unit
public java.lang.String formatString(boolean isPadded)
isPadded - - whether to pad the format
public Longitude round(Longitude image)
round in class A_LatitudeLongitude<Longitude>image - - the image; the one and only one nonzero field specifies the field to round
public Longitude subtract_(Longitude longitude)
longitude - - the unit
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||