Example #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);
        }
Example #2
0
        public bool Isosceles()   //равнобедренные треугольник?
        {
            double a = Edge.lengthEdge(c, d);
            double b = Edge.lengthEdge(c, e);
            double f = Edge.lengthEdge(d, e);

            if ((a == b) || (b == f) || (f == a))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
        public bool Right() // прямоугольный треугольник?    (a^2 + b^2 = f^2)
        {
            double a = Math.Round(Math.Pow(Edge.lengthEdge(c, d), 2));
            double b = Math.Round(Math.Pow(Edge.lengthEdge(c, e), 2));
            double f = Math.Round(Math.Pow(Edge.lengthEdge(d, e), 2));



            if ((a == (b + f)) || (b == (a + f)) || (f == (a + b)))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #4
0
        public double Perimetr() //периметр
        {
            double perim = Edge.lengthEdge(c, d) + Edge.lengthEdge(c, e) + Edge.lengthEdge(d, e);

            return(perim);
        }