|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.GeographicCoordinates
cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.Latitude
public class Latitude
�int’, ’double’, ’char’ provide the latitude degree, minute (as a decimal), and cardinal description (i.e. �N’ or �S’), respectively. There are only two possible values for the �char’ parameter: �N’ for North and �S’ for South. This class is used to store data from GPS sensor.
| Constructor Summary | |
|---|---|
Latitude()
|
|
Latitude(int degree,
double minute,
char cardinal)
|
|
| Method Summary | |
|---|---|
static Latitude |
DegreeToDMC(double degree)
Converter method for converting degrees to degree minutes and to determine cardinal character. |
static double |
DMCToDegree(Latitude latitude)
Converter method for converting the degree, minute to degrees respectively to cardinal character. |
static double |
DMCToMinutes(Latitude latitude)
Converter method for converting the degree, minute to minutes respectively to cardinal character. |
static Latitude |
MinutesTODMC(double minutes)
Converter method for converting minutes to degree minutes and to determine cardinal character. |
| Methods inherited from class cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.GeographicCoordinates |
|---|
getCardinal, getDegree, getMinute, set, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Latitude()
public Latitude(int degree,
double minute,
char cardinal)
| Method Detail |
|---|
public static double DMCToMinutes(Latitude latitude)
latitude - Latitude to convert
public static Latitude MinutesTODMC(double minutes)
minutes - Minute representation of Latitude
public static double DMCToDegree(Latitude latitude)
latitude - Latitude to convert
public static Latitude DegreeToDMC(double degree)
degree - Degree representation of Latitude
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||