// Calculate distances for algorithm private List <Double> getClickDistanceList(PointCollection points, Point clickPoint) { List <Double> distances = points.Aggregate( new List <Double>(), (acc, p) => { acc.Add(Utilities.getDistance(p, clickPoint)); return(acc); }); return(distances); }
private List <Double> GetClickDistanceList(PointCollection points, Point clickPoint) { List <Double> distances = points.Aggregate( new List <Double>(), (acc, p) => { acc.Add(CustomPolygon.GetDistance(p, clickPoint)); return(acc); }); return(distances); }