utility
Class Sixty

java.lang.Object
  extended by utility.Sixty

public class Sixty
extends java.lang.Object


Constructor Summary
Sixty()
           
Sixty(boolean isNeg, int deg, int min, double sec)
          constructor for degrees-minutes-seconds.
Sixty(double dvalue)
           
 
Method Summary
static double diffDEC(double dec1, double dec2)
          calculates the difference in DEC taking zerocrossing into account.
static double diffRA(double ra1, double ra2)
          calculates the difference in RA taking zerocrossing into account.
 int getDegrees()
           
 int getDMin()
           
 double getDSec()
           
 double getDValue()
           
 int getHMin()
           
 int getHours()
           
 double getHSec()
           
 double getHValue()
           
 boolean getIsNeg()
           
 double getRadValue()
           
static Sixty getSixtyFromHMS(double hvalue)
          pseudo-constructor for hours-minutes-seconds
static Sixty getSixtyFromHMS(double hr, double min, double sec)
          pseudo-constructor for hours-minutes-seconds
static Sixty parseStringDMS(java.lang.String s)
           
static Sixty parseStringHMS(java.lang.String s)
           
 void setDValue(double dvalue)
           
 void setRadValue(double rvalue)
           
 java.lang.String toStringDMS()
           
static java.lang.String toStringDMS(double dvalue)
          takes decmial degrees and converts to string
 java.lang.String toStringHMS()
           
static java.lang.String toStringHMS(double hvalue)
          takes decmial hours and converts to string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sixty

public Sixty()

Sixty

public Sixty(boolean isNeg,
             int deg,
             int min,
             double sec)
constructor for degrees-minutes-seconds. If isNeg is true, the entire angle is assumed to be negative


Sixty

public Sixty(double dvalue)
Method Detail

getIsNeg

public boolean getIsNeg()

getDegrees

public int getDegrees()

getDMin

public int getDMin()

getDSec

public double getDSec()

getDValue

public double getDValue()

getHours

public int getHours()

getHMin

public int getHMin()

getHSec

public double getHSec()

getHValue

public double getHValue()

getRadValue

public double getRadValue()

setDValue

public void setDValue(double dvalue)

setRadValue

public void setRadValue(double rvalue)

toStringDMS

public java.lang.String toStringDMS()

toStringHMS

public java.lang.String toStringHMS()

toStringDMS

public static java.lang.String toStringDMS(double dvalue)
takes decmial degrees and converts to string


toStringHMS

public static java.lang.String toStringHMS(double hvalue)
takes decmial hours and converts to string


parseStringDMS

public static Sixty parseStringDMS(java.lang.String s)

parseStringHMS

public static Sixty parseStringHMS(java.lang.String s)

getSixtyFromHMS

public static Sixty getSixtyFromHMS(double hr,
                                    double min,
                                    double sec)
pseudo-constructor for hours-minutes-seconds


getSixtyFromHMS

public static Sixty getSixtyFromHMS(double hvalue)
pseudo-constructor for hours-minutes-seconds


diffRA

public static double diffRA(double ra1,
                            double ra2)
calculates the difference in RA taking zerocrossing into account.


diffDEC

public static double diffDEC(double dec1,
                             double dec2)
calculates the difference in DEC taking zerocrossing into account.