Exemple #1
0
 public double noweightDistanceTo(DemandPoint demandPoint)
 {
     return(location.DistanceTo(demandPoint.location));
 }
Exemple #2
0
        public double weightedDistanceTo(DemandPoint anotherDemandPoint)
        {
            double distance = location.DistanceTo(anotherDemandPoint.location);

            return(anotherDemandPoint.CarNumber * distance);
        }