Example #1
0
        public void setMacierz(RealMatrix m)
        {
            Wektor temp= new Wektor(Start, Wektor.Type.Horizontal);
            temp.setElementy(m[0]);

            Mtx.Add(temp);
            for (int i = 1; i < m.Count; i++)
            {
                temp = new Wektor(Mtx.Last().pobierzPozycjeNastDol(),
                    Wektor.Type.Horizontal,m[i]);
                Mtx.Add(temp);
            }
        }
Example #2
0
        public void setMacierz(int m,int n)
        {
            Wektor temp = new Wektor(Start, Wektor.Type.Horizontal);
            temp.setElementy(m);

            Mtx.Add(temp);
            for (int i = 1; i < n; i++)
            {
                temp = new Wektor(Mtx.Last().pobierzPozycjeNastDol(),
                    Wektor.Type.Horizontal);
                temp.setElementy(m);
                Mtx.Add(temp);
            }
        }
Example #3
0
        private void inicjalizacja5()
        {
            e5 = new PodstElem(e4.pobierzPozycjeNastDol(), "");
            e5.setKolorProstokat(Colors.Silver);
            czLabel = new PodstElem(e5.pobierzPozycjeNastPrawy(), "Z-c");
            wektorCz = new Wektor(czLabel.pobierzPozycjeNastPrawy(), Wektor.Type.Horizontal);
            wektorCz.setElementy(lElemWektoraC);
            e6 = new PodstElem(wektorCz.pobierzPozycjeNastPrawy(), "");
            e6.setKolorProstokat(Colors.Silver);

            e5.dodajDoCanvas(this);
            czLabel.dodajDoCanvas(this);
            wektorCz.dodajdoCanvas(this);
            e6.dodajDoCanvas(this);
        }
Example #4
0
        private void inicjalizacja4()
        {
            e4 = new PodstElem(wektorBaza.pobierzPozycjeNastDol(), "");
            e4.setKolorProstokat(Colors.Silver);
            zLabel = new PodstElem(e4.pobierzPozycjeNastPrawy(), "Z");
            wektorZ = new Wektor(zLabel.pobierzPozycjeNastPrawy(), Wektor.Type.Horizontal);
            wektorZ.setElementy(lElemWektoraC);
            sum = new PodstElem(wektorZ.pobierzPozycjeNastPrawy(), "");

            e4.dodajDoCanvas(this);
            zLabel.dodajDoCanvas(this);
            wektorZ.dodajdoCanvas(this);
            sum.dodajDoCanvas(this);
        }
Example #5
0
        private void inicjalizacja3()
        {
            wektorBaza = new Wektor(bLabel.pobierzPozycjeNastDol(), Wektor.Type.Vertical);
            wektorBaza.setElementy(lOgr);
            wektorWartBaza = new Wektor(wektorBaza.pobierzPozycjeNastPrawy(), Wektor.Type.Vertical);
            wektorWartBaza.setElementy(lOgr);
            mtx = new Macierz(wektorWartBaza.pobierzPozycjeNastPrawy());
            mtx.setMacierz(lElemWektoraC, lOgr);
            wektorWart = new Wektor(mtx.pobierzPozycjeNastPrawy(), Wektor.Type.Vertical);
            wektorWart.setElementy(lOgr);

            wektorBaza.dodajdoCanvas(this);
            wektorWartBaza.dodajdoCanvas(this);
            mtx.dodajdoCanvas(this);
            wektorWart.dodajdoCanvas(this);
        }
Example #6
0
        private void inicjalizacja2()
        {
            bLabel = new PodstElem(e1.pobierzPozycjeNastDol(), "B");
            e3 = new PodstElem(bLabel.pobierzPozycjeNastPrawy(), "");
            e3.setKolorProstokat(Colors.Silver);
            wektorGora_x = new Wektor(e3.pobierzPozycjeNastPrawy(), Wektor.Type.Horizontal);
            wektorGora_x.setElementy(lElemWektoraC);
            wartLabel = new PodstElem(wektorGora_x.pobierzPozycjeNastPrawy(), "Val");

            bLabel.dodajDoCanvas(this);
            e3.dodajDoCanvas(this);
            wektorGora_x.dodajdoCanvas(this);
            wartLabel.dodajDoCanvas(this);
        }
Example #7
0
        private void inicjalizacja1()
        {
            e1 = new PodstElem(new System.Windows.Point(10.0,10.0), "");
            e1.setKolorProstokat(Colors.Silver);
            cLabel = new PodstElem(e1.pobierzPozycjeNastPrawy(), "C");
            cLabel.setKolorProstokat(Colors.Azure);
            wektorGora_c = new Wektor(cLabel.pobierzPozycjeNastPrawy(), Wektor.Type.Horizontal);
            wektorGora_c.setElementy(lElemWektoraC);
            e2 = new PodstElem(wektorGora_c.pobierzPozycjeNastPrawy(), "");
            e2.setKolorProstokat(Colors.Silver);

            e1.dodajDoCanvas(this);
            cLabel.dodajDoCanvas(this);
            wektorGora_c.dodajdoCanvas(this);
            e2.dodajDoCanvas(this);
        }