public class RA extends Angle implements java.lang.Cloneable, java.io.Serializable
Angle.Format, Angle.Units
FULL_CIRCLE, HALF_TURN, RIGHT_ANGLE, TWO_PI, ZERO
Constructor and Description |
---|
RA(Angle angle) |
RA(double degrees,
Angle.Units units) |
RA(double hour,
double min,
double sec)
Can pass in fractional hours or minutes but will be held in normalised form with integer hours and minutes
plus fractional seconds.
|
Modifier and Type | Method and Description |
---|---|
RA |
clone()
Returns a new RA object with the same data.
|
boolean |
equals(java.lang.Object other) |
byte |
getHour()
Range 0..23
|
byte |
getMinute()
Range 0..59
|
float |
getSecond()
Range 0.0..59.99999
|
int |
hashCode()
Enable objects of this class to be used as hash keys.
|
static RA |
parseRA(java.lang.String s)
Allow all possible formatting of the String.
|
double |
toDegrees() |
double |
toHours() |
java.lang.String |
toString() |
public RA(double hour, double min, double sec)
public RA(double degrees, Angle.Units units)
public RA(Angle angle)
public byte getHour()
public byte getMinute()
public float getSecond()
public static RA parseRA(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public double toHours()
public double toDegrees()
public int hashCode()