Beispiel #1
0
 //return the distance to p2 in meters
 public double distanceTo(Position p2)
 {
     return Math.Sqrt(Math.Abs((p2.X - X) * (p2.X - X) + (p2.Y - Y) * (p2.Y - Y)));
 }
Beispiel #2
0
 public Location(string n, Position p)
     : base()
 {
     name = n;
     coord = p;
 }