File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ constexpr inline double JupiterMass = 1.2668653e17 / G; // kg
4343constexpr 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
5353constexpr inline float LN_MAG = 5 .0f / std::log(100 .0f );
@@ -88,13 +88,13 @@ constexpr inline double SECONDS_PER_DEG = 3600.0;
8888constexpr inline double DEG_PER_HRA = 15.0 ;
8989
9090template <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
9393template <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
9696template <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
9999float reflectedLuminosity (float sunLuminosity, float distanceFromSun, float objRadius);
100100
You can’t perform that action at this time.
0 commit comments