|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.minetti.astrodevice.common.coordinate.RadianCoordinate
public final class RadianCoordinate
Immutable object representing a coordinate stored as radian.
Constructor Summary | |
---|---|
RadianCoordinate(boolean hourAngle,
double radian)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Coordinate obj)
|
boolean |
equals(Object obj)
|
int |
getAngle()
Returns the angle part of coordinate. |
int |
getMinutes()
Returns the minutes part of coordinate. |
double |
getRadian()
Returns the full value of the coordinate in radian. |
double |
getSeconds()
Returns the seconds part of coordinate. |
double |
getValue()
Returns the full value of the coordinate. |
int |
hashCode()
|
boolean |
isHourAngle()
Returns TRUE if the coordinate is an hour angle and therefore expressed in hours (not in degrees). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RadianCoordinate(boolean hourAngle, double radian)
hourAngle
- TRUE
if the coordinate is an hour angle and therefore expressed in hours (not in
degrees).radian
- Full value of the coordinate in radian (rad).Method Detail |
---|
public boolean isHourAngle()
Coordinate
TRUE
if the coordinate is an hour angle and therefore expressed in hours (not in degrees).
isHourAngle
in interface Coordinate
TRUE
if the coordinate is expressed in hours (not in degrees).public double getRadian()
Coordinate
getRadian
in interface Coordinate
public double getValue()
Coordinate
getValue
in interface Coordinate
public int getAngle()
Coordinate
getAngle
in interface Coordinate
public int getMinutes()
Coordinate
getMinutes
in interface Coordinate
public double getSeconds()
Coordinate
getSeconds
in interface Coordinate
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compareTo(Coordinate obj)
compareTo
in interface Comparable<Coordinate>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |