Пример #1
0
 public double Distance(Vector2d32f vector)
 {
     return(Math.Sqrt((_1 - vector._1) * (_1 - vector._1) + (_2 - vector._2) * (_2 - vector._2)));
 }
Пример #2
0
 public static double Distance(Vector2d32f vector1, Vector2d32f vector2)
 {
     return(Math.Sqrt((vector1._1 - vector2._1) * (vector1._1 - vector2._1) + (vector1._2 - vector2._2) * (vector1._2 - vector2._2)));
 }