public double noweightDistanceTo(DemandPoint demandPoint) { return(location.DistanceTo(demandPoint.location)); }
public double weightedDistanceTo(DemandPoint anotherDemandPoint) { double distance = location.DistanceTo(anotherDemandPoint.location); return(anotherDemandPoint.CarNumber * distance); }