public double GetDistance(TemperatureLocation tl)
 {
     return Math.Sqrt((this.x - tl.x) * (this.x - tl.x) + (this.y - tl.y) * (this.y - tl.y));
 }
예제 #2
0
 public double GetDistance(TemperatureLocation tl)
 {
     return(Math.Sqrt((this.x - tl.x) * (this.x - tl.x) + (this.y - tl.y) * (this.y - tl.y)));
 }