pub fn transform_state<T: TimeLike>(
from: Frame,
to: Frame,
t: &T,
pos: &Vector3,
vel: &Vector3,
) -> Result<(Vector3, Vector3)>Expand description
State (position + velocity) transform from from to to at time t.
Uses the full IERS 2010 reduction. Properly handles the Earth-rotation
sweep term ω⊕ × r when transitioning between rotating (Frame::ITRF,
Frame::TIRS) and inertial (Frame::GCRF, Frame::EME2000,
Frame::ICRF, Frame::CIRS, Frame::TEME) frames. ITRF↔TIRS is
treated as a static rotation — polar motion contributes ~1 mm/s at LEO
altitudes and is neglected here, matching the existing
itrf_to_gcrf_state convention.
Orbit-dependent frames (Frame::LVLH, Frame::RTN, Frame::NTW)
require orbit state to define their axes and are not handled here — use
to_gcrf / from_gcrf for those.