SharpNeat.Domains.IntPoint.CalculateDistance C# (CSharp) Method

CalculateDistance() public static method

Calculate Euclidean distance between two points.
public static CalculateDistance ( IntPoint a, IntPoint b ) : double
a IntPoint
b IntPoint
return double
        public static double CalculateDistance(IntPoint a, IntPoint b)
        {
            double x = (a._x - b._x);
            double y = (a._y - b._y);
            return Math.Sqrt(x*x + y*y);
        }

Same methods

IntPoint::CalculateDistance ( IntPoint a, int x, int y ) : double