Exemplo n.º 1
0
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";
}
Exemplo n.º 2
0
fixed 
UnorderedTask::GetTaskRadius(const GeoPoint& fallback_location) const
{
  TaskPoint *tp = GetActiveTaskPoint();
  if (!tp) {
    return fixed_zero;
  } else {
    return half(tp->GetLocation().Distance(fallback_location));
  }
}
Exemplo n.º 3
0
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);
  }
}