GlideState GlideState::Remaining(const TaskPoint &tp, const AircraftState &aircraft, const fixed min_h) { assert(aircraft.location.IsValid()); return GlideState(tp.GetVectorRemaining(aircraft.location), std::max(min_h, tp.GetElevation()), aircraft.altitude, aircraft.wind); }
GlideResult TaskSolution::GlideSolutionSink(const TaskPoint &taskpoint, const AircraftState &ac, const GlideSettings &settings, const GlidePolar &polar, const fixed s) { GlideState gs(taskpoint.GetVectorRemaining(ac.location), taskpoint.GetElevation(), ac.altitude, ac.wind); return MacCready::SolveSink(settings, polar, gs, s); }