org.minetti.astrodevice.common.coordinate.system
Class HorizontalCoordinates

java.lang.Object
  extended by org.minetti.astrodevice.common.coordinate.system.HorizontalCoordinates
All Implemented Interfaces:
Serializable

public final class HorizontalCoordinates
extends Object
implements Serializable

Immutable object representing the horizontal coordinates of a celestial position.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
HorizontalCoordinates(Coordinate azimuth, Coordinate altitude)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Coordinate getAltitude()
          Returns the altitude a of the celestial position.
 Coordinate getAzimuth()
          Returns the azimuth A of the celestial position.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HorizontalCoordinates

public HorizontalCoordinates(Coordinate azimuth,
                             Coordinate altitude)
Constructor.

Parameters:
azimuth - Azimuth A of the celestial position in degrees (°).
altitude - Altitude a of the celestial position in degrees (°).
Method Detail

getAzimuth

public Coordinate getAzimuth()
Returns the azimuth A of the celestial position. The range of values is 0 to 360°, with:

Returns:
Azimuth A of the celestial position in degrees (°).

getAltitude

public Coordinate getAltitude()
Returns the altitude a of the celestial position. The range of values is 0 to 90°, with:

Returns:
Altitude a of the celestial position in degrees (°).

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 astroDevice. All Rights Reserved.