state method

  1. @override
StateVector state(
  1. int target,
  2. int center,
  3. double et
)
override

Position and velocity of target relative to center at et (TDB seconds past J2000), in the ICRF/J2000 frame.

Throws ArgumentError if there is no data for the body at that moment.

Implementation

@override
StateVector state(int target, int center, double et) =>
    _barycentric(target, et) - _barycentric(center, et);