Esempio n. 1
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt(Math.Pow((X() - structure.X()), 2) + Math.Pow((Y() - structure.Y()), 2)));
 }
Esempio n. 2
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt((this.X() - structure.X()) * (this.X() - structure.X()) + ((this.Y() - structure.Y()) * (this.Y() - structure.Y()))));
 }