Exemple #1
0
bool
AirspacePredicateHeightRangeExcludeTwo::operator()(const AbstractAirspace& t) const
{
  if (!check_height(t))
    return false;
  return !t.inside(p1) && !t.inside(p2);
}
AirspaceInterceptSolution
AirspaceNearestSort::solve_intercept(const AbstractAirspace &a) const
{
  if (a.inside(m_location)) {
    AirspaceInterceptSolution null_sol;
    return null_sol;
  } else {
    AirspaceInterceptSolution sol;
    sol.location = a.closest_point(m_location);
    sol.distance = sol.location.distance(m_location);
    return sol;
  }
}
Exemple #3
0
bool 
AirspacePredicateAircraftInside::operator()(const AbstractAirspace& t) const
{
  return t.inside(m_state);
}