public static final class CalendarAstronomer.Equatorial extends Object
Note that Equatorial objects are immutable and cannot be modified once they are constructed. This allows them to be passed and returned by value without worrying about whether other code will modify them.
| Modifier and Type | Field and Description |
|---|---|
double |
ascension
The right ascension, in radians.
|
double |
declination
The declination, in radians.
|
| Constructor and Description |
|---|
Equatorial(double asc,
double dec)
Constructs an Equatorial coordinate object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toHmsString()
Return a string representation of this object with the right ascension
measured in hours, minutes, and seconds.
|
String |
toString()
Return a string representation of this object, with the
angles measured in degrees.
|
public final double ascension
public final double declination
public Equatorial(double asc,
double dec)
asc - The right ascension, measured in radians.dec - The declination, measured in radians.