예제 #1
0
파일: Airspace.hpp 프로젝트: hnpilot/XCSoar
 /**
  * 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)
 {
 };
예제 #2
0
파일: Trace.hpp 프로젝트: macsux/XCSoar
 gcc_pure
 unsigned ProjectRange(const GeoPoint &location, fixed distance) const {
     return task_projection.project_range(location, distance);
 }