Exemplo n.º 1
0
        private void Initialize()
        {
            ptInput = connectedMenus.ptInput;
            connectedMenus.ptInput.Initialize(this);
            connectedMenus.ptOutputMenu.Initialize(this);
            List <string> neg1 = new List <string>()
            {
                "-", "1"
            };
            List <string> pos1 = new List <string>()
            {
                "1"
            };

            ptSet = new PtSet();

            eqnSet = new EqnSet();

            ptInput.ChangeOutput(ptSet.ptCoords["pt1"].X);
            updatePoint("pt1", new Vector3(-2, 3, 4), false);
            updatePoint("pt2", new Vector3(1, 1, 0), false);
            updatePoint("pt3", new Vector3(1, 90, -1), false);
            //updatePoint("pt1", new Vector3(-1, 1, 1), false);  //Old default
            //updatePoint("pt2", new Vector3(1, -1, 1), false);  //Old default
            //updatePoint("pt3", new Vector3(1, 0, -1), false);  //Old default
        }
Exemplo n.º 2
0
 public void SetOutput(CalcOutput output)
 {
     ptInput.ChangeOutput(output);
     if (output != eqnSet.eqnCoefs["a"] && output != eqnSet.eqnCoefs["b"] && output != eqnSet.eqnCoefs["c"] && output != eqnSet.eqnCoefs["d"])
     {
         eqnInput = false;
     }
     else
     {
         eqnInput = true;
     }
 }