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); }
static void XuatDiem(DIEM pDiem) { Console.WriteLine("({0} , {1})", pDiem.X, pDiem.Y); }