void PrintHelper::taskpoint_print(std::ostream& f, const TaskPoint& tp, const AircraftState &state) { f << "# Task point \n"; f << "# Location " << tp.GetLocation().longitude << "," << tp.GetLocation().latitude << "\n"; }
fixed UnorderedTask::GetTaskRadius(const GeoPoint& fallback_location) const { TaskPoint *tp = GetActiveTaskPoint(); if (!tp) { return fixed_zero; } else { return half(tp->GetLocation().Distance(fallback_location)); } }
GeoPoint UnorderedTask::GetTaskCenter(const GeoPoint& fallback_location) const { TaskPoint *tp = GetActiveTaskPoint(); if (!tp) { return fallback_location; } else { return tp->GetLocation().Interpolate(fallback_location, fixed_half); } }