|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.minetti.astrodevice.common.coordinate.SexagesimalCoordinate
public final class SexagesimalCoordinate
Immutable object representing a coordinate stored as degrees-minutes-seconds (DMS).
Constructor Summary | |
---|---|
SexagesimalCoordinate(boolean hourAngle,
int angle,
int minutes,
double seconds)
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 SexagesimalCoordinate(boolean hourAngle, int angle, int minutes, double seconds)
hourAngle
- TRUE
if the coordinate is an hour angle and therefore expressed in hours (not in
degrees).angle
- Angle part of coordinate in hours (h) or degrees (°).minutes
- Minutes part of coordinate (′).seconds
- Seconds part of coordinate (″).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 |