public static double CalculateDistance2D(I2Dimentional firstPoint2D, I2Dimentional secondPoint2D) { double distance = Math.Sqrt( Math.Pow(secondPoint2D.X - firstPoint2D.X, 2) + Math.Pow(secondPoint2D.Y - firstPoint2D.Y, 2)); return(distance); }
public static double CalculateDistance2D(I2Dimentional firstPoint2D, I2Dimentional secondPoint2D) { double distance = Math.Sqrt( Math.Pow(secondPoint2D.X - firstPoint2D.X, 2) + Math.Pow(secondPoint2D.Y - firstPoint2D.Y, 2)); return distance; }