public class RightAscension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
hours |
double |
minutes |
double |
seconds |
| Constructor and Description |
|---|
RightAscension(double decimal,
boolean IsInDegrees)
Class constructor, given the right ascension in decimal degrees or decimal hours
|
RightAscension(double hours,
double minutes,
double seconds)
Class constructor, given the right ascension in mixed format.
|
| Modifier and Type | Method and Description |
|---|---|
double |
ConvertToDecimalDegrees()
Gets the right ascension in decimal degrees
|
double |
ConvertToDecimalHours()
Gets the right ascension in decimal hours
|
java.lang.String |
toString()
Gets a string representation of the right ascension.
|
public RightAscension(double hours,
double minutes,
double seconds)
hours - the hours part of the right ascensionminutes - the minutes part of the right ascensionseconds - the seconds part of the right ascensionpublic RightAscension(double decimal,
boolean IsInDegrees)
decimal - the right ascensionIsInDegrees - true for decimal degrees or false for decimal hourspublic double ConvertToDecimalHours()
public double ConvertToDecimalDegrees()
public java.lang.String toString()
toString in class java.lang.Object