com.ibm.icu.util
Class CalendarAstronomer.Horizon

java.lang.Object
  |
  +--com.ibm.icu.util.CalendarAstronomer.Horizon
Enclosing class:
CalendarAstronomer

public static final class CalendarAstronomer.Horizon
extends java.lang.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.

See Also:
CalendarAstronomer.Ecliptic, CalendarAstronomer.Equatorial

Field Summary
 double altitude
          The object's altitude above the horizon, in radians.
 double azimuth
          The object's direction, in radians clockwise from north.
 
Constructor Summary
CalendarAstronomer.Horizon(double alt, double azim)
          Constructs a Horizon coordinate object.
 
Method Summary
 java.lang.String toString()
          Return a string representation of this object, with the angles measured in degrees.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

altitude

public final double altitude
The object's altitude above the horizon, in radians.

azimuth

public final double azimuth
The object's direction, in radians clockwise from north.
Constructor Detail

CalendarAstronomer.Horizon

public CalendarAstronomer.Horizon(double alt,
                                  double azim)
Constructs a Horizon coordinate object.

Parameters:
alt - The altitude, measured in radians above the horizon.
azim - The azimuth, measured in radians clockwise from north.
Method Detail

toString

public java.lang.String toString()
Return a string representation of this object, with the angles measured in degrees.
Overrides:
toString in class java.lang.Object


Copyright (c) 2001 IBM Corporation and others.