예제 #1
0
        static double KhoangCach(DIEM pA, DIEM pB)
        {
            double dResult = 0;

            dResult = Math.Sqrt(((pA.X - pB.X) * (pA.X - pB.X)) + ((pA.Y - pB.Y) * (pA.Y - pB.Y)));
            return(dResult);
        }
예제 #2
0
 static void XuatDiem(DIEM pDiem)
 {
     Console.WriteLine("({0} , {1})", pDiem.X, pDiem.Y);
 }