|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dk.itu.haas.GPS.Position
This is a class meant for containing positions.
Constructor Summary | |
Position()
Makes a new position. |
|
Position(double la,
double lo)
Initializes the Position with la as the latitude and lo as the longitude. |
|
Position(IPosition pos)
Initializes the position object from an IPosition reference. |
Method Summary | |
PositionRadians |
getLatitude()
Returns the latitude of this position. |
PositionRadians |
getLongitude()
Returns the longitude of this position. |
void |
setLatitude(PositionRadians l)
Sets the latitude of this position. |
void |
setLongitude(PositionRadians l)
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 Position()
public Position(double la, double lo)
public Position(IPosition pos)
Method Detail |
public void setLatitude(PositionRadians l)
public void setLongitude(PositionRadians l)
public PositionRadians getLatitude()
getLatitude
in interface IPosition
public PositionRadians getLongitude()
getLongitude
in interface IPosition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |