|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.GeographicCoordinates cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.Longitude
public class Longitude
�int’, ’float’, ’char’ provide the longitude degree, minute (as a decimal), and cardinal description (i.e. �E’ or �W’), respectively. There are only two possible values for the �char’ parameter: �E’ for East and �W’ for West. This class is used to store data from GPS sensor.
Constructor Summary | |
---|---|
Longitude()
|
|
Longitude(int degree,
double minute,
char cardinal)
|
Method Summary | |
---|---|
static Longitude |
DegreeToDMC(double degree)
Converter method for converting degrees to degree minutes and to determine cardinal character. |
static double |
DMCToDegree(Longitude longitude)
Converter method for converting the degree, minute to degrees respectively to cardinal character. |
static double |
DMCToMinutes(Longitude longitude)
Converter method for converting the degree, minute to minutes respectively to cardinal character. |
static Longitude |
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 Longitude()
public Longitude(int degree, double minute, char cardinal)
Method Detail |
---|
public static double DMCToMinutes(Longitude longitude)
longitude
- Longitude to convert
public static Longitude MinutesTODMC(double minutes)
minutes
- Minute representation of Longitude
public static double DMCToDegree(Longitude longitude)
longitude
- Longitude to convert
public static Longitude DegreeToDMC(double degree)
degree
- Degree representation of Longitude
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |