Exemplo n.º 1
0
        public static LineByEquation CreateLineByEquation(Drawing drawing, string a, string b, string c)
        {
            var result = new LineByEquation()
            {
                Drawing = drawing
            };
            var equation = new GeneralFormLineEquation(result, a, b, c);

            result.Equation = equation;
            equation.Recalculate();
            return(result);
        }
Exemplo n.º 2
0
        public static LineByEquation CreateLineByEquation(Drawing drawing, string m, string b)
        {
            var result = new LineByEquation()
            {
                Drawing = drawing
            };
            var equation = new SlopeInterseptLineEquation(result, m, b);

            result.Equation = equation;
            equation.Recalculate();
            return(result);
        }