Пример #1
0
        static bool CheckTriangle(Point a, Point b, Point c)
        {
            Triangle t  = new Triangle(a, b, c);
            double   ab = t.EdgeAB();
            double   bc = t.EdgeBC();
            double   ac = t.EdgeAC();

            if (ab + bc <= ac || ab + ac <= bc || bc + ac <= ab)
            {
                return(false);
            }
            return(true);
        }