|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
CoordinateTRUE if the coordinate is an hour angle and therefore expressed in hours (not in degrees).
isHourAngle in interface CoordinateTRUE if the coordinate is expressed in hours (not in degrees).public double getRadian()
Coordinate
getRadian in interface Coordinatepublic double getValue()
Coordinate
getValue in interface Coordinatepublic int getAngle()
Coordinate
getAngle in interface Coordinatepublic int getMinutes()
Coordinate
getMinutes in interface Coordinatepublic double getSeconds()
Coordinate
getSeconds in interface Coordinatepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic 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 | |||||||||