Package fmg.fmg8.umgebung2D

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


       Vektor2D dreiP2 = (new Vektor2D(p2));
       Vektor2D sechsP1 = (new Vektor2D(p1));
       dreiP0.mult(3);
       dreiP1.mult(3);
       dreiP2.mult(3);
       sechsP1.mult(6);
       Vektor2D punkt2, punkt3;
       double tQuad, tKub;

       for (double t = 0; t <= 1; t += step) {
           tQuad = t * t;
 
View Full Code Here


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

        kurve.addAll(bezier);
       
        for (int i = 1; i < p.size() - 1; i++) {
            v1 = new Vektor2D(v.get(i));
            v2 = new Vektor2D(p.get(i + 1));
            v1.mult(k.get(i - 1));
            v1.add(p.get(i));
            v2.sub(v.get(i + 1));
            bezier = fmg.fmg8.graphVis.zeichenModi.Geometrie2D.bezierKurve(
                    p.get(i), v1, v2, p.get(i + 1), step);
            kurve.addAll(bezier);
View Full Code Here

           
        } else {
            Vektor2D vv = new Vektor2D(x2, y2);
            vv.sub(new Vektor2D(x1, y1));
            vv.normal();
            vv.mult(35);
           
            x1 += vv.x;
            y1 += vv.y;
            x2 -= vv.x;
            y2 -= vv.y;
View Full Code Here

        for (AbstractMsg m : liste) {
            if (m.getZusatz() != null
                    && m.getZusatz().getClass().equals(Vektor2D.class)) {
               
                zwisch = new Vektor2D((Vektor2D) m.getZusatz());
                zwisch.mult(skalierung);
                zwisch.add(verschiebung);
                kreise.add(new Kreis2D(zwisch, radius));
            }
        }
       
View Full Code Here

            = new Vektor2D(this.pfeilPol.getBoundingBox().getRechtUntEcke());
       
        Vektor2D neuVersch = new Vektor2D(xF / 2, yF / 2);
        Vektor2D zwisch = new Vektor2D(pLO);
        zwisch.add(new Vektor2D((pRU.x - pLO.x) / 2, (pRU.y - pLO.y) / 2));
        zwisch.mult(skalierung);
        neuVersch.sub(zwisch);
        this.verschiebung = neuVersch;
    }
   
    /**
 
View Full Code Here

        for (AbstractMsg m : liste) {
            if (m.getZusatz() != null
                    && m.getZusatz().getClass().equals(Vektor2D.class)) {
               
                zwisch = new Vektor2D((Vektor2D) m.getZusatz());
                zwisch.mult(skalierung);
                zwisch.add(verschiebung);
                kreise.add(new Kreis2D(zwisch, radius));
            }
        }
       
View Full Code Here

        if (this.pfeilPol.size() <= 0) {
            return null;
        }
       
        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);
       
View Full Code Here

        Vektor2D pRU = new Vektor2D(Geometrie2D.rahmen(objekte).get(1));
       
        Vektor2D neuVersch = new Vektor2D(mitte);
        Vektor2D zwisch = new Vektor2D(pLO);
        zwisch.add(new Vektor2D((pRU.x - pLO.x) / 2, (pRU.y - pLO.y) / 2));
        zwisch.mult(skalierung);
        neuVersch.sub(zwisch);
        this.verschiebung = neuVersch;
    }
   
    /**
 
View Full Code Here

       Vektor2D dreiP2 = (new Vektor2D(p2));
       Vektor2D sechsP1 = (new Vektor2D(p1));
       dreiP0.mult(3);
       dreiP1.mult(3);
       dreiP2.mult(3);
       sechsP1.mult(6);
       Vektor2D punkt2, punkt3;
       double tQuad, tKub;

       for (double t = 0; t <= 1; t += step) {
           tQuad = t * t;
 
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.