예제 #1
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt(Math.Pow((X() - structure.X()), 2) + Math.Pow((Y() - structure.Y()), 2)));
 }
예제 #2
0
파일: Tent.cs 프로젝트: Harrm/ReliefCamp
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt((this.X() - structure.X()) * (this.X() - structure.X()) + ((this.Y() - structure.Y()) * (this.Y() - structure.Y()))));
 }