swiftest.core.xv2el#
- swiftest.core.xv2el(mu, rh, vh)#
Convert state vectors to orbital elements
- Parameters:
mu ((N,) array of floats) – Gravitational parameter
rh ((N,3) array of floats) – position vector
vh ((N,3) array of floats)
- Returns:
a ((N,) array of floats) – Semi-major axis
e ((N,) array of floats) – Eccentricity
inc ((N,) array of floats) – Inclination (degrees)
capom ((N,) array of floats) – Longitude of the ascending node (degrees)
omega ((N,) array of floats) – Argument of periapsis (degrees)
capm ((N,) array of floats) – Mean anomaly (degrees)
varpi ((N,) array of floats) – Longitude of periapsis (degrees)
lam ((N,) array of floats) – True longitude (degrees)
f ((N,) array of floats) – True anomaly (degrees)
cape ((N,) array of floats) – Eccentric anomaly (degrees)
capf ((N,) array of floats) – Eccentric true anomaly (degrees)