Beispiel #1
0
        public double DienTich()
        {
            double p = ChuVi() / 2;

            return(Math.Sqrt((p - DiemA.KhoangCach(DiemB)) * (p - DiemA.KhoangCach(DiemC)) * (p - DiemB.KhoangCach(DiemC))));
        }
Beispiel #2
0
 public double ChuVi()
 {
     return(DiemA.KhoangCach(DiemB) + DiemA.KhoangCach(DiemC) + DiemB.KhoangCach(DiemC));
 }