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

            return(anotherDemandPoint.CarNumber * distance);
        }