ssapy_toolkit.Orbital_Mechanics.rv_to_ellipse
- ssapy_toolkit.Orbital_Mechanics.rv_to_ellipse(r, v, *, t0=None, num: int | None = None, mu: float = 398600441800000.0, R_body: float = 6378137.0)[source]
Return the ellipse-arc dictionary used by ellipse_arc.py. When num ≥ 2, generate that many samples starting with (r0, v0):
Elliptic – advance uniformly in true anomaly through 2π.
Non-elliptic – advance until r = 2·|r0|.
The first sample is always the exact input state.