Beispiel #1
0
 public double Distance(InterestingPoint b)
 {
     // квадрат расстояния
     return(MathHelper.Sqr(x - b.x) + MathHelper.Sqr(y - b.y));
 }
Beispiel #2
0
 public static double Distance(InterestingPoint a, InterestingPoint b)
 {
     return(Math.Sqrt(MathHelper.Sqr(a.x - b.y) + MathHelper.Sqr(a.x - b.y)));
 }