/** * Constructor for virtual airspaces for use in range-based * intersection queries * * @param loc Location about which to create a virtual airspace envelope * @param task_projection projection to be used for flat-earth representation * @param range range in meters of virtual bounding box * * @return dummy airspace envelope */ Airspace(const GeoPoint&loc, const TaskProjection& task_projection, const fixed range=fixed_zero): FlatBoundingBox(task_projection.project(loc), task_projection.project_range(loc,range)), pimpl_airspace(NULL) { };
gcc_pure unsigned ProjectRange(const GeoPoint &location, fixed distance) const { return task_projection.project_range(location, distance); }