|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.Angle
net.grelf.astro.RA
public class RA
Representation of Right Ascension (celestial longitude).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.grelf.Angle |
|---|
Angle.Units |
| Field Summary |
|---|
| Fields inherited from class net.grelf.Angle |
|---|
DEGREE_SYMBOL, FOUR_PI, TWO_PI, valueRadians |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
double |
toDegrees()
|
double |
toHours()
|
java.lang.String |
toString()
Units are radians. |
| Methods inherited from class net.grelf.Angle |
|---|
acos, add, angleStatistics, angleStatistics, asin, atan, atan2, compareTo, cos, difference, getDegrees, getHours, getRadians, getStdErrDegrees, getStdErrHours, getStdErrRadians, in360, multiply, sin, subtract, tan, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public byte getHour()
public byte getMinute()
public float getSecond()
public double toHours()
public double toDegrees()
public boolean equals(java.lang.Object other)
equals in class Anglepublic int hashCode()
hashCode in class Anglepublic RA clone()
clone in class Anglepublic java.lang.String toString()
Angle
toString in class Angle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||