Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/12 15:07:10 (12 years ago)
Author:
svonolfe
Message:

Added Picture generator (#1696)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/VRPProblemAnalyzer/Utils.cs

    r7315 r7316  
    1515      return points;
    1616    }
     17
     18    public static double GetDistance(double[,] vertices, int source, int target) {
     19      return Math.Sqrt(
     20        Math.Pow((vertices[source, 0] - vertices[target, 0]), 2) +
     21        Math.Pow((vertices[source, 1] - vertices[target, 1]), 2));
     22    }
    1723  }
    1824}
Note: See TracChangeset for help on using the changeset viewer.