SampleApp.MainForm.GetDistance C# (CSharp) Method

GetDistance() private method

private GetDistance ( Point p1, Point p2 ) : int
p1 Point
p2 Point
return int
        private int GetDistance(Point p1, Point p2)
        {
            return (Convert.ToInt32(Math.Sqrt(Math.Pow(p1.X - p2.X, 2) + Math.Pow(p1.Y - p2.Y, 2))));
        }
MainForm