|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_LatitudeLongitude<Latitude>
uavsim.datatypes.Latitude
public class Latitude
Defines latitude in terms of Universal Transverse Mercator (UTM) coordinates. Only the northern 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 | |
|---|---|
Latitude(double encoding)
Creates a latitude object from the decimal encoding format. |
|
Latitude(double encoding,
A_LatitudeLongitude.E_Format format)
Creates a latitude object. |
|
Latitude(int degrees,
int minutes,
double seconds)
Creates a latitude object. |
|
| Method Summary | |
|---|---|
Latitude |
add_(Latitude latitude)
Adds another unit to this one. |
java.lang.String |
formatString(boolean isPadded)
Formats the latitude appropriately. |
Latitude |
round(Latitude image)
Rounds the coordinate to the nearest degree, minute, or second. |
Latitude |
subtract_(Latitude latitude)
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 Latitude(double encoding)
encoding - - the encoding
public Latitude(double encoding,
A_LatitudeLongitude.E_Format format)
encoding - - the encodingformat - - the encoding format
public Latitude(int degrees,
int minutes,
double seconds)
degrees - - the degrees (northern hemisphere only)minutes - - the minutesseconds - - the seconds| Method Detail |
|---|
public Latitude add_(Latitude latitude)
latitude - - the unit
public java.lang.String formatString(boolean isPadded)
isPadded - - whether to pad the format
public Latitude round(Latitude image)
round in class A_LatitudeLongitude<Latitude>image - - the image; the one and only one nonzero field specifies the field to round
public Latitude subtract_(Latitude latitude)
latitude - - 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 | ||||||||