Astro  0.0.0
A C++ library for space dynamics
Loading...
Searching...
No Matches
Utilities.hxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Astro
 The namespace for the Astro library.
 

Macros

#define ASTRO_UTILITIES_HXX
 

Functions

Real Astro::power2 (Real x)
 
Real Astro::power3 (Real x)
 
Real Astro::power4 (Real x)
 
Real Astro::deg_to_rad (Real x)
 
Real Astro::rad_to_deg (Real x)
 
Real Astro::angle_in_range (Real x)
 
Real Astro::angle_in_range_sym (Real x)
 
Real Astro::AU_to_KM (Real x)
 
Real Astro::AU_by_DAY_to_km_by_s (Real x)
 
Real Astro::AU_by_DAY2_to_km_by_s2 (Real x)
 
Real Astro::AU_by_DAY3_to_km_by_s3 (Real x)
 

Variables

static Real const Astro::PI = Real(3.141592653589793238462643383279502884197)
 
static Real const Astro::PIMUL2 = Real(6.283185307179586476925286766559005768394)
 
static Real const Astro::PIDIV2 = Real(1.570796326794896619231321691639751442098)
 
static Real const Astro::DEG2RAD = Real(0.017453292519943295769236907684886127134)
 
static Real const Astro::RAD2DEG = Real(57.29577951308232087679815481410517033240)
 
static Real const Astro::AU_TO_KM {1.49597870707e+08}
 
static Real const Astro::PC_TO_AU {6.48e+05/PI}
 
static Real const Astro::AU_TO_PC {1.0/PC_TO_AU}
 
static Real const Astro::KM_TO_PC {1.0/PC_TO_KM}
 
static Real const Astro::KM_TO_LY {1.0/LY_TO_KM}
 
static Real const Astro::AU_TO_LY {1.0/LY_TO_AU}
 
static Real const Astro::KM_TO_M {1000.0}
 
static Real const Astro::AU_TO_M {AU_TO_KM*KM_TO_M}
 
static Real const Astro::PC_TO_M {LY_TO_KM*KM_TO_M}
 
static Real const Astro::M_TO_LY {LY_TO_KM*KM_TO_M}
 
static Real const Astro::DAY_TO_SEC {86400.0}
 
static Real const Astro::KG_M_SEC2_TO_KG_AU_DAY2 {M_TO_AU/(SEC_TO_DAY*SEC_TO_DAY)}
 
static Real const Astro::gravity_kg_m_s2 {9.80665}
 
static Real const Astro::gravity_kg_AU_DAY2 {gravity_kg_m_s2*KG_M_SEC2_TO_KG_AU_DAY2}
 
static Real const Astro::muSun_km3s2 {1.32712440018E11}
 
static Real const Astro::muSun_AU3DAY2 {muSun_km3s2*(KM_TO_AU*KM_TO_AU*KM_TO_AU)/(SEC_TO_DAY*SEC_TO_DAY)}
 

Macro Definition Documentation

◆ ASTRO_UTILITIES_HXX

#define ASTRO_UTILITIES_HXX