Package fmg.fmg8.umgebung2D

Examples of fmg.fmg8.umgebung2D.Vektor2D.sub()


       
        Vektor2D versch = new Vektor2D(this.pfeilPol.get(0));
        versch.mult(-1);
       
        Vektor2D anfWin = new Vektor2D(this.pfeilPol.get(1));
        anfWin.sub(this.pfeilPol.get(0));
        double winkel = Math.atan(anfWin.x / anfWin.y);
       
        Polygon2D p = (new PfeilMaster(this.pars)).segmentPfeilPol2D(
                this.pfeilPol,
                this.dicken,
View Full Code Here


        final double minZoom = 0.01;
        double xF = this.getWidth();
        double yF = this.getHeight();
        final Vektor2D mittVek = new Vektor2D(xF / 2, yF / 2);
        final Vektor2D mouse = new Vektor2D(e.getPoint());
        mouse.sub(mittVek); // TODO
       
        if (e.getWheelRotation() > 0) {
            this.skalierung /= konstSkal * Math.abs(e.getWheelRotation());
        } else {
            this.skalierung *= konstSkal * Math.abs(e.getWheelRotation());
 
View Full Code Here

                                              false,
                                              false,
                                              false);

                    norm = new Vektor2D(letzte[j].x, letzte[j].y);
                    norm.sub(new Vektor2D(
                            rob.getPosition().x,
                            rob.getPosition().y));
                    norm.ortho();
                    norm.normal();
                   
View Full Code Here

        normArr.add(aktV);
        aktAbst = 0;
        while (i < this.nPoints()) {
            if (i + 1 < this.nPoints()) {
                aktRicht = new Vektor2D(this.get(i + 1));
                aktRicht.sub(this.get(i));
               
                if (this.get(i).distanz(this.get(i + 1)) >= durchAbst) {
                    aktRicht.laengeFestlegen(durchAbst);
                   
                    while (aktAbst < abstaende.get(i + 1)) {
View Full Code Here

                                < durchAbst) {
                            zwischAbst += aktDist;
                            i++;
                        } else {
                            aktRicht = new Vektor2D(this.get(i + 1));
                            aktRicht.sub(this.get(i));
                            aktRicht.laengeFestlegen(durchAbst - zwischAbst);
                            aktV = new Vektor2D(this.get(i));
                            aktV.add(aktRicht);
                            normArr.add(aktV);
                            aktAbst += durchAbst;
View Full Code Here

        normArr.add(aktV);
        aktAbst = 0;
        while (i < this.nPoints()) {
            if (i + 1 < this.nPoints()) {
                aktRicht = new Vektor2D(this.get(i + 1));
                aktRicht.sub(this.get(i));
                aktRicht.laengeFestlegen(durchAbst);
               
                while (aktAbst < abstaende.get(i + 1)) {
                    aktV = new Vektor2D(aktV);
                    aktV.add(aktRicht);
View Full Code Here

           punkt.sub(dreiP2);
           punkt.add(p3);
           punkt.mult(tKub);
          
           punkt2 = new Vektor2D(dreiP0);
           punkt2.sub(sechsP1);
           punkt2.add(dreiP2);
           punkt2.mult(tQuad);
          
           punkt3 = new Vektor2D(dreiP1);
           punkt3.sub(dreiP0);
View Full Code Here

            } else if (o.getClass().equals(Kreis2D.class)) {
                Kreis2D k = (Kreis2D) o;
                zwischMax = new Vektor2D(k.holeMitte());
                zwischMin = new Vektor2D(k.holeMitte());
                zwischMax.add(new Vektor2D(k.holeRadius(), k.holeRadius()));
                zwischMin.sub(new Vektor2D(k.holeRadius(), k.holeRadius()));
            } else if (o.getClass().equals(Integer.class)) {
                if (stringPos == 0) {
                    stringX = (Integer) o;
                    stringPos++;
                } else {
View Full Code Here

         p02 = new Vektor2D(p3);
        
         p11.add(c1);
         p12.add(c2);
         p01.sub(c1);
         p02.sub(c2);
        
         v1.laengeFestlegen(p1.distanz(p2));
         v2.laengeFestlegen(p2.distanz(p3));
        
         g1 = new Gerade2D(p11, v1);
View Full Code Here

        }

        if (nummer == 2) {
            a = new Polygon2D(1);
            v = new Vektor2D(Vektor2D.NULL_VEKTOR);
            v.sub(new Vektor2D(0, 0.3));
            a.add(v);
        }

        if (nummer == 3) {
            a = fmg.fmg8.graphVis.zeichenModi.Geometrie2D.bezierKurve(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.