|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.gps.GPSPosition
Used to represent any point location transmitted to or from GPS.
Constructor Summary | |
GPSPosition()
Creates a new position. |
|
GPSPosition(double lat,
double lng,
float alt)
Initializes the position with a given latitude, longitude and altitude. |
|
GPSPosition(GPSPosition position)
Initializes the position object with a given position. |
Method Summary | |
float |
getAltitude()
Reports the altitude of this position. |
AngleRadians |
getLatitude()
Reports the latitude of this position in radians. |
AngleRadians |
getLongitude()
Reports the longitude of this position in radians. |
void |
setAltitude(float alt)
Sets the altitude of this position. |
void |
setLatitude(AngleRadians lat)
Sets the latitude of this position. |
void |
setLongitude(AngleRadians lng)
Sets the longitude of this position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GPSPosition()
public GPSPosition(double lat, double lng, float alt)
lat
- Latitude of position.lng
- Longitude of position.alt
- Altitude of this postion (can be 0 if not used).public GPSPosition(GPSPosition position)
position
- Position with which to initialise.Method Detail |
public void setLatitude(AngleRadians lat)
lat
- New latitude for this position.public void setLongitude(AngleRadians lng)
lng
- New longitude for this position in radians.public void setAltitude(float alt)
alt
- New altitude of this position.public AngleRadians getLatitude()
getLatitude
in interface Position
public AngleRadians getLongitude()
getLongitude
in interface Position
public float getAltitude()
getAltitude
in interface Position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |