Function lupnt::ConvertFrame(Real, const State&, Frame, bool)¶
Defined in File frame_converter.cc
Function Documentation¶
-
State lupnt::ConvertFrame(Real t_tdb, const State &x_in, Frame frame_out, bool rotate_only = false)¶
Converts a typed LuPNT
State(e.g.Cart6,ClassicalOE, …) to the frameframe_outat epocht_tdb, preserving its element-type representation.Internally converts
x_into Cartesian (Cart6) viaConvertState, applies the Vec6ConvertFrameoverload to change frames, then converts back tox_in’s originalStateType. Used by agent/dynamics code that stores a state in a non-Cartesian representation (e.g. classical orbital elements) but needs it in a different reference frame.