예제 #1
0
 public double Distance(DoublePoint2D target) => Math.Sqrt(SquareDistance(target));
예제 #2
0
 public double SquareDistance(DoublePoint2D target) => (Math.Pow(X - target.X, 2) + Math.Pow(Y - target.Y, 2));