Example #1
0
        public void Run(IExportClient cl)
        {
            var len = 50d;
            var p1  = new SolverPoint(0, 0);
            var p2  = new SolverPoint(len, 0);
            var p3  = new SolverPoint(len * Math.Cos(Angle * Deg2Rad), len * Math.Sin(Angle * Deg2Rad));

            cl.Line(p1, p2, 1, "base");
            cl.Line(p1, p3, 0, "base");
        }
Example #2
0
        public void Run(IExportClient cl)
        {
            double start = -100;
            double end   = 100;
            double step  = 0.1;

            var p1 = new SolverPoint(start, F(start));

            for (double x = start; x <= end; x += step)
            {
                double y  = F(x);
                var    p2 = new SolverPoint(x, y);
                cl.Line(p1, p2, 0, "base");

                p1 = p2;
            }
        }
Example #3
0
        public void Run(IExportClient cl)
        {
            mClient = cl;

            BeforeCircle(cl);

            SolverPoint last = null;

            for (int i = 0; i < NumSteps; ++i)
            {
                var angle = (MaxAngle - MinAngle) / NumSteps * i + MinAngle;
                var r     = angle * Deg2Rad;
                var p     = GetCircularPoint(i, r, cl);

                if (last != null)
                {
                    cl.Line(last, p, 0, "base");
                }
                last = p;
            }

            AfterCircle(cl);
        }