Beispiel #1
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            system = new CoordinateSystem(graphics);

            //Vector a = new Vector(5, 35);
            //Vector b = new Vector(5, 57, a.Components());

            //system.AddVector(a);
            //system.AddVector(b);
            //system.AddVector(a + b);
            Line line = new Line(new LinearEquation(1, 0));
            line.AddEquation(new LinearEquation(1, 0));
            //system.AddLine(line);

            float[] constants = new float[4];
            constants[0] = 0;
            constants[1] = 1;
            constants[2] = 1;
            constants[3] = 1;
            line = new Line(new QuadraticEquation(constants));
            system.AddLine(line);

            // This part is just for testing, getting prepped to set up the vector class.

            base.Initialize();
        }