Skip to content

Commit 73281f2

Browse files
committed
clarification
1 parent 34e8927 commit 73281f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/celastro/astro.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ constexpr inline double JupiterMass = 1.2668653e17 / G; // kg
4343
constexpr inline float SOLAR_ABSMAG = 4.81f;
4444

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

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

5252
// Auxiliary magnitude conversion factor
5353
constexpr inline float LN_MAG = 5.0f / std::log(100.0f);
@@ -88,13 +88,13 @@ constexpr inline double SECONDS_PER_DEG = 3600.0;
8888
constexpr inline double DEG_PER_HRA = 15.0;
8989

9090
template<typename T>
91-
constexpr inline auto EARTH_RADIUS = detail::enable_if_fp<T>(6378.14L);
91+
constexpr inline auto EARTH_RADIUS = detail::enable_if_fp<T>(6378.1L); // IAU 2015 Resolution B3
9292

9393
template<typename T>
94-
constexpr inline auto JUPITER_RADIUS = detail::enable_if_fp<T>(71492.0L);
94+
constexpr inline auto JUPITER_RADIUS = detail::enable_if_fp<T>(71492.0L); // IAU 2015 Resolution B3
9595

9696
template<typename T>
97-
constexpr inline auto SOLAR_RADIUS = detail::enable_if_fp<T>(696000.0L);
97+
constexpr inline auto SOLAR_RADIUS = detail::enable_if_fp<T>(695700.0L); // IAU 2015 Resolution B3
9898

9999
float reflectedLuminosity(float sunLuminosity, float distanceFromSun, float objRadius);
100100

0 commit comments

Comments
 (0)