Function lupnt::GetFrameRotationTranslationRv¶
Defined in File frame_converter.h
Function Documentation¶
-
std::pair<Mat6, Vec6> lupnt::GetFrameRotationTranslationRv(Real t_tdb, Frame from_frame, Frame to_frame)¶
Returns the affine Cartesian-state transform
(R6, t6)such thatx_to = R6 * x_from + t6converts a 6-element position+velocity state fromfrom_frametoto_frameat epocht_tdb.t6is obtained by transforming the zero state, andR6(6x6) by transforming each of the 6 basis states and subtractingt6; this lets callers apply a single linear(-affine) map to many states/derivatives without repeatedly callingConvertFrame. Used wherever a Jacobian or batch of relative states needs to be mapped between frames at a fixed epoch.- Parameters:
t_tdb – Epoch [s, TDB since J2000]
from_frame – Input reference frame
to_frame – Output reference frame
- Returns:
Pair
(R6, t6): 6x6 rotation/state matrix R6 (dimensionless for the rotation block) and 6-vector translation t6 [m, m/s]