Class JsConst

java.lang.Object
  extended byJsConst

public class JsConst
extends java.lang.Object


Constructor Summary
JsConst()
           
 
Method Summary
 double b1900()
          Return the Julian Date corresponding to Besselian Date 1900.0.
 double b1950()
          Return the Julian Date corresponding to Besselian Date 1950.0.
 double clight()
          Return the speed of light in a vacuum (IAU official value, in km/sec).
 double dpr()
          returns the double precision value of the constant 180/PI which represents the number of degrees of arc per radian.
 double halfpi()
          returns the double precision value of the constant 180/PI which represents the number of degrees of arc per radian.
 double j1900()
          Return the Julian Date of 1899 DEC 31 12:00:00 (1900 JAN 0.5).
 double j1950()
          Return the Julian Date of 1950 JAN 01 00:00:00 (1950 JAN 1.0).
 double j2000()
          Return the Julian Date of 2000 JAN 01 12:00:00 (2000 JAN 1.5).
 double j2100()
          Return the Julian Date of 2100 JAN 01 12:00:00 (2100 JAN 1.5).
 double jyear()
          Return the number of seconds in a julian year.
 double pi()
          Return the value of pi (the ratio of the circumference of a circle to its diameter).
 double rpd()
          Return the number of radians per degree.
 double spd()
          Return the number of seconds in a day.
 double twopi()
          Return twice the value of pi (the ratio of the circumference of a circle to its diameter).
 double tyear()
          Return the number of seconds in a tropical year.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsConst

public JsConst()
Method Detail

b1900

public double b1900()
             throws java.lang.Exception
Return the Julian Date corresponding to Besselian Date 1900.0.

Returns:
The function returns 2415020.31352, the Julian Date corresponding to Besselian Date 1900.0.
Throws:
java.lang.Exception

b1950

public double b1950()
             throws java.lang.Exception
Return the Julian Date corresponding to Besselian Date 1950.0.

Returns:
The function returns 2433282.423 the Julian Date corresponding to Besselian Date 1950.0.
Throws:
java.lang.Exception

clight

public double clight()
              throws java.lang.Exception
Return the speed of light in a vacuum (IAU official value, in km/sec).

Returns:
The function returns the IAU official value for the speed of light in vacuo: 299792.458 km/sec.
Throws:
java.lang.Exception

dpr

public double dpr()
           throws java.lang.Exception
returns the double precision value of the constant 180/PI which represents the number of degrees of arc per radian.

Returns:
The function returns the number of degrees per radian: 180/pi. The value of pi is determined by the ACOS function
Throws:
java.lang.Exception

halfpi

public double halfpi()
              throws java.lang.Exception
returns the double precision value of the constant 180/PI which represents the number of degrees of arc per radian.

Returns:
The function returns the number of degrees per radian: 180/pi. The value of pi is determined by the ACOS function
Throws:
java.lang.Exception

j1900

public double j1900()
             throws java.lang.Exception
Return the Julian Date of 1899 DEC 31 12:00:00 (1900 JAN 0.5).

Returns:
The function returns 2415020.0, the Julian Date corresponding to 1899 DEC 31 12:00:00 (1900 JAN 0.5).
Throws:
java.lang.Exception

j1950

public double j1950()
             throws java.lang.Exception
Return the Julian Date of 1950 JAN 01 00:00:00 (1950 JAN 1.0).

Returns:
The function returns the Julian Date of 1950 JAN 01 00:00:00 (1950 JAN 1.0).
Throws:
java.lang.Exception

j2000

public double j2000()
             throws java.lang.Exception
Return the Julian Date of 2000 JAN 01 12:00:00 (2000 JAN 1.5).

Returns:
The function returns 2451545.0, the Julian Date corresponding to 2000 JAN 01 12:00:00 (2000 JAN 1.5).
Throws:
java.lang.Exception

j2100

public double j2100()
             throws java.lang.Exception
Return the Julian Date of 2100 JAN 01 12:00:00 (2100 JAN 1.5).

Returns:
The function returns the Julian Date of 2100 JAN 01 12:00:00 (2100 JAN 1.5).
Throws:
java.lang.Exception

jyear

public double jyear()
             throws java.lang.Exception
Return the number of seconds in a julian year.

Returns:
The function returns the number of seconds per julian year.
Throws:
java.lang.Exception

pi

public double pi()
          throws java.lang.Exception
Return the value of pi (the ratio of the circumference of a circle to its diameter). The first time the function is referenced, the value is computed as shown above. The value is saved, and returned directly upon subsequent reference.

Returns:
The function returns the value of pi (the ratio of a circle's circumference to its diameter), determined by the ACOS function. That is, pi_c = acos ( -1.0 );
Throws:
java.lang.Exception

rpd

public double rpd()
           throws java.lang.Exception
Return the number of radians per degree.

Returns:
The function returns the number of radians per degree.
Throws:
java.lang.Exception

spd

public double spd()
           throws java.lang.Exception
Return the number of seconds in a day.

Returns:
The function returns the number of seconds in a day: 86400
Throws:
java.lang.Exception

twopi

public double twopi()
             throws java.lang.Exception
Return twice the value of pi (the ratio of the circumference of a circle to its diameter).

Returns:
The function returns twice the value of pi (the ratio of a circle's circumference to its diameter), determined by the ACOS function. That is, twopi = acos ( -1. ) * 2.
Throws:
java.lang.Exception

tyear

public double tyear()
             throws java.lang.Exception
Return the number of seconds in a tropical year.

Returns:
The function returns the number of seconds per tropical year. This value is taken from the 1992 Explanatory Supplement to the Astronomical Almanac.
Throws:
java.lang.Exception