Function lupnt::spice::GetBodyPosVel(const VecX&, BodyId, BodyId)

Function Documentation

MatX6 lupnt::spice::GetBodyPosVel(const VecX &t_tdb, BodyId center, BodyId target)

Vectorized (per-epoch) overload of GetBodyPosVel.

Parameters:
  • t_tdb – Epochs [s, TDB seconds since J2000]

  • center – Origin body of the returned states

  • targetBody whose state is returned

Returns:

[N x 6] position [km] / velocity [km/s] of target relative to center at each epoch, in J2000