dk.itu.haas.GPS
Class Position

java.lang.Object
  |
  +--dk.itu.haas.GPS.Position
All Implemented Interfaces:
IPosition

public class Position
extends java.lang.Object
implements IPosition

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

Position

public Position()
Makes a new position. Initializes the latitude and the longitude to 0.


Position

public Position(double la,
                double lo)
Initializes the Position with la as the latitude and lo as the longitude.


Position

public Position(IPosition pos)
Initializes the position object from an IPosition reference.

Method Detail

setLatitude

public void setLatitude(PositionRadians l)
Sets the latitude of this position.


setLongitude

public void setLongitude(PositionRadians l)
Sets the longitude of this position.


getLatitude

public PositionRadians getLatitude()
Returns the latitude of this position.

Specified by:
getLatitude in interface IPosition

getLongitude

public PositionRadians getLongitude()
Returns the longitude of this position.

Specified by:
getLongitude in interface IPosition