public static final class CalendarAstronomer.Horizon extends Object
Note that Horizon 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 |
altitude
The object's altitude above the horizon, in radians.
|
double |
azimuth
The object's direction, in radians clockwise from north.
|
| Constructor and Description |
|---|
Horizon(double alt,
double azim)
Constructs a Horizon coordinate object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Return a string representation of this object, with the
angles measured in degrees.
|
public final double altitude
public final double azimuth