edu.pdx.starview.calc
Class SVRADec

java.lang.Object
  extended byedu.pdx.starview.calc.SVRADec

public class SVRADec
extends java.lang.Object

This represents both the Right Ascention and Declenation of an object in the sky.

Author:
Dave Camarillo modified by Richard Rodriguez - added methods getRightAscensionDMS() & getDeclinationDMS()

Field Summary
 SVAngle Dec
          The decliation in the equatorial choord system.
 SVAngle RA
          The right ascention in the equatorial choord system.
 
Constructor Summary
SVRADec(double theRA, double theDec)
          Constructor
SVRADec(SVAngle theRA, SVAngle theDec)
          Constructor
 
Method Summary
 SVAngle getDeclinationDMS()
           
 SVAngle getRightAscensionDMS()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RA

public SVAngle RA
The right ascention in the equatorial choord system.


Dec

public SVAngle Dec
The decliation in the equatorial choord system.

Constructor Detail

SVRADec

public SVRADec(SVAngle theRA,
               SVAngle theDec)
Constructor

Parameters:
theRA - The right ascention that the new object should have.
theDec - The declination that the new object should have.

SVRADec

public SVRADec(double theRA,
               double theDec)
        throws java.lang.Exception
Constructor

Parameters:
theRA - The right ascention that the new object should have (in Radians).
theDec - The declination that the new object should have (in Radians).
Throws:
java.lang.Exception - if somthing bad happens
Method Detail

toString

public java.lang.String toString()
Returns:
A nicely formated string to display the RA and Dec.

getRightAscensionDMS

public SVAngle getRightAscensionDMS()
Returns:
The Right Ascension of the location in the sky.

getDeclinationDMS

public SVAngle getDeclinationDMS()
Returns:
The Declination of the location in the sky.