org.jscience.devices.gps
Class PositionRadians

java.lang.Object
  extended by org.jscience.devices.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()
          DOCUMENT ME!
 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()
          DOCUMENT ME!
 
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.

Parameters:
v - DOCUMENT ME!
Method Detail

getRadians

public double getRadians()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDegrees

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

Returns:
DOCUMENT ME!

getMinutes

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

Returns:
DOCUMENT ME!

equals

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

Parameters:
p - DOCUMENT ME!
Returns:
DOCUMENT ME!

greaterThan

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

Parameters:
p - DOCUMENT ME!
Returns:
DOCUMENT ME!

smallerThan

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

Parameters:
p - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!