Added speedOfLight constant
This commit is contained in:
parent
5fb7e621f2
commit
3c14274d7d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue