Swarm-NG
1.1
|
Defines various constants for calculations. More...
Go to the source code of this file.
Namespaces | |
peyton | |
Type traits utilities. Should be separated into it's own header. | |
peyton::constants | |
Various physical and mathematical constants. | |
Constant Groups | |
peyton | |
Type traits utilities. Should be separated into it's own header. | |
peyton::constants | |
Various physical and mathematical constants. | |
Macros | |
#define | RAD(x) { x = x*peyton::ctn::d2r; } |
Inplace conversion of degrees to radians. | |
#define | DEG(x) { x = x/peyton::ctn::d2r; } |
Inplace conversion of radians to degrees. | |
Variables | |
const double | peyton::constants::gk = 0.01720209895 |
k = sqrt(G) in units of Solar mass, days, AU | |
const double | peyton::constants::gms = gk*gk |
k^2 = G in units of Solar mass, days, AU | |
const double | peyton::constants::k2 = gms |
k^2 = G in units of Solar mass, days, AU | |
const double | peyton::constants::c = 299792458 |
speed of light, [m/s] | |
const double | peyton::constants::years = 3600*24*365 |
number of seconds in a year | |
Defines various constants for calculations.
Definition in file constants.hpp.