Пример #1
0
        public override double GetArea()
        {
            var a = Vertex1.Distance(Vertex2);
            var b = Vertex2.Distance(Vertex3);
            var c = Vertex3.Distance(Vertex1);

            var p = (a + b + c) / 2;

            return(Math.Sqrt(p * (p - a) * (p - b) * (p - c)));
        }