コード例 #1
0
 protected bool Equals(Location other)
 {
     return Id == other.Id;
 }
コード例 #2
0
 public double DistanceFrom(Location point)
 {
     return Math.Sqrt(Math.Pow(point.X - X, 2) + Math.Pow(point.Y - Y, 2));
 }