Skip to content

Commit 34e8927

Browse files
committed
clarification
1 parent 98ee734 commit 34e8927

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/celastro/astro.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,30 @@ namespace celestia::astro
2727

2828
// Angle between J2000 mean equator and the ecliptic plane: 23 deg 26' 21".448
2929
// Seidelmann, Explanatory Supplement to the Astronomical Almanac (1992), eqn 3.222-1
30-
constexpr inline double J2000Obliquity = 23.4392911_deg;
30+
constexpr inline double J2000Obliquity = 23.4392911_deg;
3131

3232
// CODATA 2022
33-
constexpr inline double speedOfLight = 299792.458; // km/s
34-
constexpr inline double G = 6.67430e-11; // N m^2 / kg^2
33+
constexpr inline double speedOfLight = 299792.458; // km/s
34+
constexpr inline double G = 6.67430e-11; // N m^2 / kg^2
3535

36-
// CODATA 2022 + IAU 2015 Resolution B3
37-
constexpr inline double SolarMass = 1.3271244e20 / G; // kg
38-
constexpr inline double EarthMass = 3.986004e14 / G; // kg
39-
constexpr inline double LunarMass = 7.346e22; // kg
40-
constexpr inline double JupiterMass = 1.2668653e17 / G; // kg
36+
// IAU 2015 Resolution B3 + CODATA 2022
37+
constexpr inline double SolarMass = 1.3271244e20 / G; // kg
38+
constexpr inline double EarthMass = 3.986004e14 / G; // kg
39+
constexpr inline double LunarMass = 7.346e22; // kg
40+
constexpr inline double JupiterMass = 1.2668653e17 / G; // kg
4141

42-
// IAU 2015 Resolution B2
43-
constexpr inline float SOLAR_ABSMAG = 4.74f;
42+
// https://mips.as.arizona.edu/~cnaw/sun.html for Johnson V filter
43+
constexpr inline float SOLAR_ABSMAG = 4.81f;
4444

4545
// IAU 2015 Resolution B3
46-
constexpr inline double SOLAR_IRRADIANCE = 1361.0; // W / m^2
47-
constexpr inline double SOLAR_POWER = 3.828e26; // W
46+
constexpr inline float SOLAR_IRRADIANCE = 1361.0; // W / m^2
47+
constexpr inline float SOLAR_POWER = 3.828e26; // W
4848

49-
// Bessel (1979)
50-
constexpr inline double VEGAN_IRRADIANCE = 3.640e-11; // W / m^2
49+
// Bessel (1979) for Johnson V filter
50+
constexpr inline float VEGAN_IRRADIANCE = 3.640e-11; // W / m^2
5151

5252
// Auxiliary magnitude conversion factor
53-
constexpr inline float LN_MAG = 1.0857362f; // 5/ln(100)
53+
constexpr inline float LN_MAG = 5.0f / std::log(100.0f);
5454

5555
// Lowest screen brightness of a point to render
5656
constexpr inline float LOWEST_IRRADIATION = 1.0f / 255.0f;

0 commit comments

Comments
 (0)