CCT.NUI.Core.Point.Distance2D C# (CSharp) 메소드

Distance2D() 공개 정적인 메소드

public static Distance2D ( Point p1, Point p2 ) : double
p1 Point
p2 Point
리턴 double
        public static double Distance2D(Point p1, Point p2)
        {
            return Math.Sqrt(Math.Pow(p1.X - p2.X, 2) + Math.Pow(p1.Y - p2.Y, 2));
        }