KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > astro > AstronomicalConstants


1 package JSci.astro;
2
3 import JSci.physics.PhysicalConstants;
4
5 /**
6  * A class defining common constants in astronomy.
7  * All values expressed in SI units.
8  * @version 1.0
9  * @author Silvere Martin-Michiellot
10  * @author Mark Hale
11  */

12 public interface AstronomicalConstants extends PhysicalConstants {
13     /**
14         * Length of an Astronomical Unit, in meters.
15     */

16     double AU = 149597870660.0;
17     /**
18         * Length of a parsec, in meters.
19     */

20     double PARSEC = 3.0856775807E+16;
21     /**
22         * Length of a (Gregorian) light year (defined), in meters.
23     */

24     double LIGHT_YEAR = 9460536207068016.0;
25 }
26
Popular Tags