Antkeeper  0.0.1
Functions
physics::orbit::anomaly Namespace Reference

Orbital anomaly functions. More...

Functions

template<class T >
true_to_eccentric (T ec, T ta)
 Derives the eccentric anomaly given eccentricity and true anomaly. More...
 
template<class T >
true_to_mean (T ec, T ta)
 Derives the mean anomaly given eccentricity and true anomaly. More...
 
template<class T >
eccentric_to_true (T ec, T ea)
 Derives the true anomaly given eccentricity and eccentric anomaly. More...
 
template<class T >
eccentric_to_mean (T ec, T ea)
 Derives the mean anomaly given eccentricity and eccentric anomaly. More...
 
template<class T >
mean_to_eccentric (T ec, T ma, std::size_t iterations, T tolerance)
 Iteratively derives the eccentric anomaly given eccentricity and mean anomaly. More...
 
template<class T >
mean_to_true (T ec, T ma, std::size_t iterations, T tolerance)
 Iteratively derives the true anomaly given eccentricity and mean anomaly. More...
 

Detailed Description

Orbital anomaly functions.

Function Documentation

◆ eccentric_to_mean()

template<class T >
T physics::orbit::anomaly::eccentric_to_mean ( ec,
ea 
)

Derives the mean anomaly given eccentricity and eccentric anomaly.

Parameters
ecEccentricity (e).
eaEccentric anomaly (E).
Returns
Mean anomaly (M).

Definition at line 137 of file anomaly.hpp.

◆ eccentric_to_true()

template<class T >
T physics::orbit::anomaly::eccentric_to_true ( ec,
ea 
)

Derives the true anomaly given eccentricity and eccentric anomaly.

Parameters
ecEccentricity (e).
eaEccentric anomaly (E).
Returns
True anomaly (nu).

Definition at line 122 of file anomaly.hpp.

◆ mean_to_eccentric()

template<class T >
T physics::orbit::anomaly::mean_to_eccentric ( ec,
ma,
std::size_t  iterations,
tolerance 
)

Iteratively derives the eccentric anomaly given eccentricity and mean anomaly.

Parameters
ecEccentricity (e).
maMean anomaly (M).
iterationsMaximum number of iterations.
toleranceSolution error tolerance.
Returns
Eccentric anomaly (E).
See also
Murison, Marc. (2006). A Practical Method for Solving the Kepler Equation. 10.13140/2.1.5019.6808.

Definition at line 152 of file anomaly.hpp.

◆ mean_to_true()

template<class T >
T physics::orbit::anomaly::mean_to_true ( ec,
ma,
std::size_t  iterations,
tolerance 
)

Iteratively derives the true anomaly given eccentricity and mean anomaly.

Parameters
ecEccentricity (e).
maMean anomaly (M).
iterationsMaximum number of iterations.
toleranceSolution error tolerance.
Returns
True anomaly (nu).

Definition at line 190 of file anomaly.hpp.

◆ true_to_eccentric()

template<class T >
T physics::orbit::anomaly::true_to_eccentric ( ec,
ta 
)

Derives the eccentric anomaly given eccentricity and true anomaly.

Parameters
ecEccentricity (e).
taTrue anomaly (nu).
Returns
Eccentric anomaly (E).

Definition at line 101 of file anomaly.hpp.

◆ true_to_mean()

template<class T >
T physics::orbit::anomaly::true_to_mean ( ec,
ta 
)

Derives the mean anomaly given eccentricity and true anomaly.

Parameters
ecEccentricity (e).
taTrue anomaly (nu).
Returns
Mean anomaly (M).

Definition at line 116 of file anomaly.hpp.