示例#1
0
文件: TamGiac.cs 项目: nd1226/OOP
        public double DienTich()
        {
            double p = ChuVi() / 2;

            return(Math.Sqrt((p - DiemA.KhoangCach(DiemB)) * (p - DiemA.KhoangCach(DiemC)) * (p - DiemB.KhoangCach(DiemC))));
        }
示例#2
0
文件: TamGiac.cs 项目: nd1226/OOP
 public double ChuVi()
 {
     return(DiemA.KhoangCach(DiemB) + DiemA.KhoangCach(DiemC) + DiemB.KhoangCach(DiemC));
 }