public class RA extends Angle implements java.lang.Cloneable, java.io.Serializable
Angle.Format, Angle.Units
DEGREE_SYMBOL, FOUR_PI, TWO_PI, valueRadians
Constructor and Description |
---|
RA(Angle angle) |
RA(double degrees) |
RA(double degrees,
double sigmaDegs) |
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.
|
RA(double hour,
double min,
double sec,
double sigmaDegs)
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 |
---|---|
static RA |
atan2(double y,
double x) |
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()
Units are radians.
|
acos, add, angleStatistics, angleStatistics, asin, atan, compareTo, cos, difference, equals, getDegrees, getHours, getRadians, getStdErrDegrees, getStdErrHours, getStdErrRadians, in360, multiply, parseAngle, sin, subtract, tan, toString, toString
public RA(double hour, double min, double sec, double sigmaDegs)
public RA(double hour, double min, double sec)
public RA(double degrees, double sigmaDegs)
public RA(double degrees)
public RA(Angle angle)
public byte getHour()
public byte getMinute()
public float getSecond()
public static RA atan2(double y, double x)
public static RA parseRA(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public double toHours()
public double toDegrees()
public int hashCode()