Beispiel #1
0
void
Airspaces::VisitIntersecting(const GeoPoint &loc, const GeoPoint &end,
                             AirspaceIntersectionVisitor &visitor) const
{
  for (const auto &i : QueryIntersecting(loc, end))
    if (visitor.SetIntersections(i.Intersects(loc, end, task_projection)))
      visitor.Visit(i.GetAirspace());
}
Beispiel #2
0
 void operator()(Airspace as) {
   if (as.intersects(*ray) &&
       visitor->set_intersections(as.intersects(*loc, *vec)))
     visitor->Visit(as);
 }
Beispiel #3
0
 void operator()(Airspace as) {
   if (as.intersects(*ray) &&
       visitor->set_intersections(as.Intersects(start, end)))
     visitor->Visit(as);
 }
Beispiel #4
0
 void operator()(Airspace as) {
   if (as.Intersects(ray) &&
       visitor->SetIntersections(as.Intersects(start, end, *projection)))
     visitor->Visit(as);
 }