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

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

public final class EquatorialCoordinates
extends Object
implements Serializable

Immutable object representing the equatorial coordinates of a celestial position.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
EquatorialCoordinates(Coordinate rightAscension, Coordinate declination)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Coordinate getDeclination()
          Returns the declination δ of the celestial position.
 Coordinate getRightAscension()
          Returns the right ascension α 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

EquatorialCoordinates

public EquatorialCoordinates(Coordinate rightAscension,
                             Coordinate declination)
Constructor.

Parameters:
rightAscension - Right ascension α of the celestial position in hours (h).
declination - Declination δ of the celestial position in degrees (°).
Method Detail

getRightAscension

public Coordinate getRightAscension()
Returns the right ascension α of the celestial position. The range of values is 0 to 24h.

Returns:
Right ascension α of the celestial position in hours (h).

getDeclination

public Coordinate getDeclination()
Returns the declination δ of the celestial position. The range of values is:

Returns:
Declination δ 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.