Ejemplo n.º 1
0
 public static double CalculateDistance2(_Position Object_1, _Position Object_2)
 {
     return(Math.Sqrt(Math.Pow(Object_2.X - Object_1.X, 2) + Math.Pow(Object_2.Y - Object_1.Y, 2)));
 }
Ejemplo n.º 2
0
 public static double CalculateDistance(_Position Object_1, int X, int Y)
 {
     return(Math.Sqrt(Math.Pow(X - Object_1.XPosition, 2) + Math.Pow(Y - Object_1.YPosition, 2)));
 }