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)