Beispiel #1
0
 public static double Distance(Planet currentPlanet, Planet destination)
 {
     a = currentPlanet.xCoord - destination.xCoord;
     b = currentPlanet.yCoord - destination.yCoord;
     return(Math.Sqrt(Math.Pow(a, 2.0) + Math.Pow(b, 2.0)));
 }