#include "geo-tools.hh"Include dependency graph for geo-tools.cc:

Go to the source code of this file.
Functions | |
| bool | IsSameLocation (GeoLocation src, GeoLocation dst) |
| double | Distance (double long1, double lat1, double long2, double lat2) |
|
||||||||||||||||||||
|
Definition at line 34 of file geo-tools.cc. Referenced by GeoRoutingFilter::estimateCost(), GeoRoutingFilter::findNextHop(), GeoRoutingFilter::floodInsideRegion(), and GeoRoutingFilter::preProcessMessage().
00035 {
00036 double distance;
00037
00038 distance = sqrt((long1 - long2) * (long1 - long2) +
00039 (lat1 - lat2) * (lat1 - lat2));
00040
00041 return distance;
00042 }
|
|
||||||||||||
|
Definition at line 26 of file geo-tools.cc. References GeoLocation::latitude_, and GeoLocation::longitude_. Referenced by HeuristicValueTable::retrieveEntry(), and LearnedCostTable::retrieveEntry().
00027 {
00028 if ((src.longitude_ == dst.longitude_) &&
00029 (src.latitude_ == dst.latitude_))
00030 return true;
00031 return false;
00032 }
|
1.3.3