Esempio n. 1
0
        public double Area()  //площадь
        {
            double p = this.Perimetr() / 2;

            double ar = Math.Sqrt(p * (p - Edge.lengthEdge(c, d)) * (p - Edge.lengthEdge(c, e)) * (p - Edge.lengthEdge(d, e)));

            return(ar);
        }
Esempio n. 2
0
        public double Perimetr() //периметр
        {
            double perim = Edge.lengthEdge(c, d) + Edge.lengthEdge(c, e) + Edge.lengthEdge(d, e);

            return(perim);
        }