Пример #1
0
 /**
  * Calculate flat earth distance between two points
  *
  * @param sp Point to measure distance from
  *
  * @return Distance in projected units
  */
 gcc_pure
 unsigned FlatDistanceTo(const SearchPoint &sp) const {
   return flat_location.Distance(sp.flat_location);
 }
Пример #2
0
  /**
   * Get distance in internal flat projected units (fast)
   *
   * @param f Point to get distance to
   *
   * @return Distance in flat units
   */
  unsigned FlatDistanceTo(const FlatGeoPoint &f) const {
    assert(flat_location_initialised);

    return flat_location.Distance(f);
  }
Пример #3
0
 /**
  * Calculate flat earth distance between two points
  *
  * @param sp Point to measure distance from
  *
  * @return Distance in projected units
  */
 gcc_pure
 unsigned flat_distance(const SearchPoint& sp) const {
   return flatLocation.Distance(sp.flatLocation);
 }