|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dk.itu.haas.GPS.PositionRadians
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 |
public PositionRadians(double v)
Method Detail |
public double getRadians()
public int getDegrees()
public double getMinutes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(PositionRadians p)
public boolean greaterThan(PositionRadians p)
public boolean smallerThan(PositionRadians p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |