Remove some remaining non-route-related uses of SGWayPoint.
This commit is contained in:
parent
52bac46535
commit
a29e5ce666
2 changed files with 0 additions and 12 deletions
src
|
@ -227,7 +227,6 @@ private:
|
||||||
TaxiRouteVector routes;
|
TaxiRouteVector routes;
|
||||||
TrafficVector activeTraffic;
|
TrafficVector activeTraffic;
|
||||||
TrafficVectorIterator currTraffic;
|
TrafficVectorIterator currTraffic;
|
||||||
SGWayPoint destination;
|
|
||||||
|
|
||||||
bool foundRoute;
|
bool foundRoute;
|
||||||
double totalDistance, maxDistance;
|
double totalDistance, maxDistance;
|
||||||
|
|
|
@ -315,22 +315,11 @@ void FGAirwayNetwork::load(SGPath path)
|
||||||
double minDist = HUGE_VAL;
|
double minDist = HUGE_VAL;
|
||||||
double distsqrt, lat2, lon2;
|
double distsqrt, lat2, lon2;
|
||||||
int index;
|
int index;
|
||||||
SGWayPoint first (lon,
|
|
||||||
lat,
|
|
||||||
0);
|
|
||||||
//cerr << "Lat " << lat << " lon " << lon << endl;
|
//cerr << "Lat " << lat << " lon " << lon << endl;
|
||||||
for (FGNodeVectorIterator
|
for (FGNodeVectorIterator
|
||||||
itr = nodes.begin();
|
itr = nodes.begin();
|
||||||
itr != nodes.end(); itr++)
|
itr != nodes.end(); itr++)
|
||||||
{
|
{
|
||||||
//double course;
|
|
||||||
//if ((fabs(lat - ((*itr)->getLatitude())) < 0.001) &&
|
|
||||||
// (fabs(lon - ((*itr)->getLongitude()) < 0.001)))
|
|
||||||
//cerr << "Warning: nodes are near" << endl;
|
|
||||||
//SGWayPoint second ((*itr)->getLongitude(),
|
|
||||||
// (*itr)->getLatitude(),
|
|
||||||
// 0);
|
|
||||||
//first.CourseAndDistance(second, &course, &dist);
|
|
||||||
lat2 = (*itr)->getLatitude();
|
lat2 = (*itr)->getLatitude();
|
||||||
lon2 = (*itr)->getLongitude();
|
lon2 = (*itr)->getLongitude();
|
||||||
// Note: This equation should adjust for decreasing distance per longitude
|
// Note: This equation should adjust for decreasing distance per longitude
|
||||||
|
|
Loading…
Add table
Reference in a new issue