Esempio n. 1
0
Vector<Acceleration, Frame> Ephemeris<Frame>::
ComputeGravitationalAccelerationOnMasslessBody(
    not_null<DiscreteTrajectory<Frame>*> const trajectory,
    Instant const& t) const {
  auto const it = trajectory->Find(t);
  DegreesOfFreedom<Frame> const& degrees_of_freedom = it.degrees_of_freedom();
  return ComputeGravitationalAccelerationOnMasslessBody(
             degrees_of_freedom.position(), t);
}
Esempio n. 2
0
 static std::vector<Instant> After(
     not_null<FakeTrajectory const*> const trajectory,
     Instant const& time) {
   std::vector<Instant> after;
   for (FakeTrajectory::Iterator it = trajectory->Find(time);
        it != trajectory->End();
        ++it) {
     after.push_back(*it.current());
   }
   return after;
 }