astrodynx.true_anomaly#
- astrodynx.true_anomaly(pos_vec, e_vec)[source]#
Returns the true anomaly of a two-body orbit.
- Parameters:
- Return type:
- Returns:
The true anomaly of the orbit.
- Notes
The true anomaly is calculated using equation:
\[ f = \arctan2(\|\boldsymbol{e}\times \boldsymbol{r}\|, \boldsymbol{e} \cdot \boldsymbol{r}) \]where \(f\) is the true anomaly, \(\boldsymbol{e}\) is the eccentricity vector, and \(\boldsymbol{r}\) is the position vector.- References
Vallado, 2013, pp.118.