SPH
Classes | Namespaces | Functions
TwoBody.h File Reference
#include "objects/geometry/Vector.h"
#include "objects/wrappers/Optional.h"

Go to the source code of this file.

Classes

struct  Kepler::Elements
 Object holding Keplerian orbital elements of a body. More...
 

Namespaces

 Kepler
 

Functions

Optional< Elements > Kepler::computeOrbitalElements (const Float M, const Float mu, const Vector &r, const Vector &v)
 Computes the orbital elements, given position and velocity of a body. More...
 
Float Kepler::solveKeplersEquation (const Float M, const Float e, const Size iterCnt=10)
 Computes the eccentric anomaly by solving the Kepler's equation. More...
 
Float Kepler::eccentricAnomalyToTrueAnomaly (const Float u, const Float e)
 Computes the true anomaly from the eccentric anomaly and the eccentricity. More...
 
Float Kepler::trueAnomalyToEccentricAnomaly (const Float v, const Float e)
 Computes the eccentric anomaly from the true anomaly and the eccentricity. More...
 
Vector Kepler::position (const Float a, const Float e, const Float u)
 Computes the position on the elliptic trajectory. More...
 
Vector Kepler::velocity (const Float a, const Float e, const Float u, const Float n)
 Computes the velocity vector on the elliptic trajectory. More...
 
Float Kepler::meanMotion (const Float a, const Float m_total)
 Computes the mean motion from the Kepler's 3rd law. More...