Exemplo n.º 1
0
 public double Distance(DoublePoint2D target) => Math.Sqrt(SquareDistance(target));
Exemplo n.º 2
0
 public double SquareDistance(DoublePoint2D target) => (Math.Pow(X - target.X, 2) + Math.Pow(Y - target.Y, 2));