Package com.ibm.icu.impl
Class CalendarAstronomer.Horizon
- java.lang.Object
-
- com.ibm.icu.impl.CalendarAstronomer.Horizon
-
- Enclosing class:
- CalendarAstronomer
public static final class CalendarAstronomer.Horizon extends Object
Represents the position of an object in the sky relative to the local horizon. The Altitude represents the object's elevation above the horizon, with objects below the horizon having a negative altitude. The Azimuth is the geographic direction of the object from the observer's position, with 0 representing north. The azimuth increases clockwise from north.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.
-
-
Constructor Summary
Constructors Constructor Description Horizon(double alt, double azim)Constructs a Horizon coordinate object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Return a string representation of this object, with the angles measured in degrees.
-