Astro  0.0.0
A C++ library for space dynamics
Loading...
Searching...
No Matches
Utilities.hh File Reference
#include "Astro.hh"
Include dependency graph for Utilities.hh:
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_HH

Functions

Real Astro::Power2 (Real x)
template<typename Real>
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::AngleInRange (Real x)
Real Astro::AngleInRangeSym (Real x)
Real Astro::KM_To_M (Real x)
Real Astro::M_To_KM (Real x)
Real Astro::KM_To_AU (Real x)
Real Astro::AU_To_KM (Real x)
Real Astro::M_To_AU (Real x)
Real Astro::AU_To_M (Real x)
Real Astro::KM_S_To_M_S (Real x)
Real Astro::M_S_To_KM_S (Real x)
Real Astro::KM_S_To_AU_S (Real x)
Real Astro::AU_S_To_KM_S (Real x)
Real Astro::M_S_To_AU_S (Real x)
Real Astro::AU_S_To_M_S (Real x)
Real Astro::M_S_To_AU_DAY (Real x)
Real Astro::AU_DAY_To_M_S (Real x)
Real Astro::KM_S_To_AU_DAY (Real x)
Real Astro::AU_DAY_To_KM_S (Real x)
Real Astro::M_S_To_KM_DAY (Real x)
Real Astro::KM_DAY_To_M_S (Real x)
Real Astro::AU_DAY2_To_KM_S2 (Real x)
Real Astro::AU_DAY3_To_KM_S3 (Real x)
Real Astro::KM3_S2_To_KM3_DAY2 (Real x)
Real Astro::KM3_S2_To_AU3_DAY2 (Real x)
Real Astro::JulianDate (Integer year, Integer month, Integer day)
Real Astro::ModifiedJulianDate (Integer year, Integer month, Integer day)
void Astro::JD_To_Date (Real JD, Integer &year, Integer &month, Integer &day)
void Astro::MJD_To_Date (Real MJD, Integer &year, Integer &month, Integer &day)

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::DEG_TO_RAD = Real(0.017453292519943295769236907684886127134)
static Real const Astro::RAD_TO_DEG = Real(57.29577951308232087679815481410517033240)
static Real const Astro::AU_TO_KM {1.49597870707e+08}
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::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}

Macro Definition Documentation

◆ ASTRO_UTILITIES_HH

#define ASTRO_UTILITIES_HH