Пример #1
0
 public void CallTaxi(Taxi taxiler, List <double> distances)
 {
     this.Distance = Math.Round(Math.Sqrt(Math.Pow((taxiler.TaxiX - ClientX), 2) + Math.Pow((taxiler.TaxiY - ClientY), 2)));
     this.Price    = Distance * 0.3;
     distances.Add(Distance);
 }