GlideResult TaskSolution::GlideSolutionTravelled(const OrderedTaskPoint &taskpoint, const AircraftState &ac, const GlideSettings &settings, const GlidePolar &polar, const fixed min_h) { GlideState gs(taskpoint.GetVectorTravelled(), std::max(min_h, taskpoint.GetElevation()), ac.altitude, ac.wind); return MacCready::Solve(settings, polar, gs); }
GlideResult TaskSolution::GlideSolutionPlanned(const OrderedTaskPoint &taskpoint, const AircraftState &ac, const GlideSettings &settings, const GlidePolar &polar, const double min_h) { assert(ac.location.IsValid()); GlideState gs(taskpoint.GetVectorPlanned(), std::max(min_h, taskpoint.GetElevation()), ac.altitude, ac.wind); return MacCready::Solve(settings, polar, gs); }