![]() |
SuperNOVAS C++ API v1.6
High-precision C/C++ astrometry library
|
Various physical constants that SuperNOVAS uses for astrometric calculations, all expressed in terms of SI units. More...
#include <supernovas.h>
Static Public Attributes | |
| static constexpr double | c = NOVAS_C |
| [rad] π/2 | |
| static constexpr double | F_earth = NOVAS_GRS80_FLATTENING |
| GRS80 Earth flattening. | |
| static constexpr double | G = 6.67428e-1 |
| [m3 kg-1 s-2] | |
| static constexpr double | GM_earth = NOVAS_G_EARTH |
| [m3 s-2] Earth graviational constant | |
| static constexpr double | GM_sun = NOVAS_G_SUN |
| [m3 s-2] Solar graviational constant | |
| static constexpr double | half_pi = 0.5 * pi |
| [rad] 2π | |
| static constexpr double | L_B = 1.550519768e-8 |
| Barycentric clock rate increment over TT. | |
| static constexpr double | L_G = 6.969290134e-10 |
| Geocentric clock rate increment over TT. | |
| static constexpr double | M_earth = GM_sun / G |
| [kg] Earth mass | |
| static constexpr double | M_sun = GM_sun / G |
| [kg] Mass of the Sun | |
| static constexpr double | pi = M_PI |
| static constexpr double | R_earth = NOVAS_GRS80_RADIUS |
| static constexpr double | two_pi = TWOPI |
| [rad] π | |
Various physical constants that SuperNOVAS uses for astrometric calculations, all expressed in terms of SI units.
You can use them also. For example, you might use Constant::c to turn a velocity (im m/s) to a unitless β:
Note, this class cannot be instantiated or copied. You should only use its static fields.
|
staticconstexpr |
[rad] π/2
[m/s] speed of light
Referenced by supernovas::ScalarVelocity::ScalarVelocity(), supernovas::Velocity::Velocity(), supernovas::ScalarVelocity::beta(), supernovas::AstrometricPosition::obs_time(), supernovas::ScalarVelocity::operator+(), supernovas::ScalarVelocity::operator-(), supernovas::CatalogEntry::radial_velocity(), and supernovas::CatalogEntry::v_lsr().
|
staticconstexpr |
GRS80 Earth flattening.
|
staticconstexpr |
[m3 kg-1 s-2]
|
staticconstexpr |
[m3 s-2] Earth graviational constant
|
staticconstexpr |
[m3 s-2] Solar graviational constant
|
staticconstexpr |
|
staticconstexpr |
Barycentric clock rate increment over TT.
|
staticconstexpr |
Geocentric clock rate increment over TT.
[kg] Mass of the Sun
Referenced by supernovas::Planet::mass().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |