Function lupnt::GetBodyPos(Real, BodyId, BodyId, Frame)¶
Defined in File kernels.cc
Function Documentation¶
-
Vec3 lupnt::GetBodyPos(Real t_tdb, BodyId center, BodyId target, Frame frame)¶
Get the position of
targetrelative tocenterfrom the DE ephemeris, expressed inframe.Used wherever only a third-body position (not velocity) is needed — e.g. Sun/body direction vectors for eclipse and attitude-pointing computations (dynamics/ attitude_dynamics.cc), and third-body gravity gradients in NumericalOrbitDynamics (dynamics/numerical_orbit_dynamics.cc). Equivalent to
GetBodyPosVel(t_tdb, center, target, frame).head(3).- Parameters:
- Returns:
Position of
targetrelative tocenter[m], expressed inframe. Zero ifcenter == target.