Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/12 17:31:23 (12 years ago)
Author:
spimming
Message:

#1894:

  • temporarily added weight and heuristic function to graph
  • store category information and max speed with edge
  • adapted Distance method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Osm/Utils.cs

    r8462 r8479  
    77      double dx = p2.X - p1.X;
    88      double dy = p2.Y - p1.Y;
     9      return Math.Sqrt(dx * dx + dy * dy);
     10    }
     11
     12    public static double Distance(double startX, double startY, double endX, double endY) {
     13      double dx = endX - startX;
     14      double dy = endY - startY;
    915      return Math.Sqrt(dx * dx + dy * dy);
    1016    }
Note: See TracChangeset for help on using the changeset viewer.