Antkeeper  0.0.1
Classes | Namespaces | Functions
elements.hpp File Reference
#include <engine/math/vector.hpp>
#include <engine/math/numbers.hpp>
#include <cmath>

Go to the source code of this file.

Classes

struct  physics::orbit::elements< T >
 Set of six Keplerian elements required to uniquely identify an orbit. More...
 

Namespaces

 physics
 Physics.
 
 physics::orbit
 Orbital mechanics.
 

Functions

template<class T >
physics::orbit::period (T a, T gm)
 Calculates the period of an elliptical orbit according to Kepler's third law. More...
 
template<class T >
physics::orbit::mean_motion (T a, T gm)
 Calculates the mean motion (n) of an orbit. More...
 
template<class T >
physics::orbit::mean_motion (T t)
 Calculates the mean motion (n) of an orbit. More...
 
template<class T >
physics::orbit::argument_periapsis (T om, T lp)
 Derives the argument of the periapsis (omega) of an orbit, given the longitude of periapsis (pomega) and longitude of the ascending node (OMEGA). More...
 
template<class T >
physics::orbit::longitude_periapsis (T om, T w)
 Derives the longitude of the periapsis (pomega) of an orbit, given the argument of periapsis (omega) and longitude of the ascending node (OMEGA). More...
 
template<class T >
physics::orbit::semiminor_axis (T a, T ec)
 Derives the semiminor axis (b) of an orbit, given the semimajor axis (a) and eccentricity (e). More...
 
template<class T >
physics::orbit::semilatus_rectum (T a, T ec)
 Derives the semi-latus rectum (l) of an orbit, given the semimajor axis (a) and eccentricity (e). More...