dk.itu.haas.GPS
Class PositionRadians

java.lang.Object
  |
  +--dk.itu.haas.GPS.PositionRadians

public class PositionRadians
extends java.lang.Object

Class used to store radians, usually latitude or longitude. Contains methods for converting to the format degress,minutes.


Constructor Summary
PositionRadians(double v)
          Initializes the PositionRadians-object.
 
Method Summary
 boolean equals(PositionRadians p)
          Tests if the two PositionRadians contains the same value.
 int getDegrees()
          Returns the degrees part of this object, when converted to coordinates.
 double getMinutes()
          Returns the minutes part of this object, when converted to coordinates.
 double getRadians()
           
 boolean greaterThan(PositionRadians p)
          Tests if this PositionRadians is greater than p.
 boolean smallerThan(PositionRadians p)
          Tests if this PositionRadians is smaller than p.
 java.lang.String toString()
          Returns the value of this object in degrees and minutes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PositionRadians

public PositionRadians(double v)
Initializes the PositionRadians-object. After the object is constructed, it can't change is value.

Method Detail

getRadians

public double getRadians()

getDegrees

public int getDegrees()
Returns the degrees part of this object, when converted to coordinates.


getMinutes

public double getMinutes()
Returns the minutes part of this object, when converted to coordinates.


toString

public java.lang.String toString()
Returns the value of this object in degrees and minutes.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(PositionRadians p)
Tests if the two PositionRadians contains the same value.


greaterThan

public boolean greaterThan(PositionRadians p)
Tests if this PositionRadians is greater than p.


smallerThan

public boolean smallerThan(PositionRadians p)
Tests if this PositionRadians is smaller than p.