Added speedOfLight constant

This commit is contained in:
Chris Laurel 2001-08-09 01:33:25 +00:00
parent 5fb7e621f2
commit 3c14274d7d
2 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,8 @@ using namespace std;
#define KM_PER_AU 149597870.7
#define AU_PER_LY (KM_PER_LY / KM_PER_AU)
const double astro::speedOfLight = 299792.458; // km/s
// epoch J2000: 12 UT on 1 Jan 2000
const double astro::J2000 = 2451545.0;

View file

@ -75,6 +75,7 @@ namespace astro
Point3f equatorialToCelestialCart(float ra, float dec, float distance);
extern const double J2000;
extern const double speedOfLight; // km/s
};
// Convert a date structure to a Julian date