Kepler anomaly conversions and two-body propagation for classical elements.
Summary
Functions
Eccentric anomaly to mean anomaly.
Eccentric anomaly to true anomaly.
Mean anomaly to eccentric anomaly.
Mean anomaly to true anomaly.
Propagate classical elements by dt_s under two-body Kepler motion.
Solve Kepler's equation for the middle anomaly.
True anomaly to eccentric anomaly.
True anomaly to mean anomaly.
Types
@type kepler_solution() :: %{anomaly: float(), iterations: non_neg_integer()}
Functions
@spec eccentric_to_mean(number(), number()) :: scalar_result()
Eccentric anomaly to mean anomaly.
@spec eccentric_to_true(number(), number()) :: scalar_result()
Eccentric anomaly to true anomaly.
@spec mean_to_eccentric(number(), number()) :: scalar_result()
Mean anomaly to eccentric anomaly.
@spec mean_to_true(number(), number()) :: scalar_result()
Mean anomaly to true anomaly.
@spec propagate_kepler(Sidereon.OrbitalElements.t(), number(), number()) :: {:ok, Sidereon.OrbitalElements.t()} | {:error, term()}
Propagate classical elements by dt_s under two-body Kepler motion.
@spec solve_kepler(number(), number()) :: {:ok, kepler_solution()} | {:error, atom()}
Solve Kepler's equation for the middle anomaly.
@spec true_to_eccentric(number(), number()) :: scalar_result()
True anomaly to eccentric anomaly.
@spec true_to_mean(number(), number()) :: scalar_result()
True anomaly to mean anomaly.