Package toxi.geom

Examples of toxi.geom.Vec2D.scaleSelf()


    Vec2D prevVec = vec2;// (Vec2D) centrePath.get(centrePath.size() - 3);
    Vec2D curAnNext = curVec2.sub(prevVec);
    curAnNext.normalize();
    Vec2D newAn = curAnNext.getRotated(angle);
    newAn.normalize();
    newAn.scaleSelf(offsetDelta);
    newAn.addSelf(curVec2);
    return new SketchPoint(newAn.x, newAn.y);

  }
View Full Code Here


 
      if (curveNormal1 != null) {
        newAnLeft1 = (Vec2D) curveNormal1
            .getRotated((float) (Math.PI / 2));
        newAnLeft1.normalize();
        newAnLeft1.scaleSelf(tempOffset);
        newAnLeft1.addSelf(curVec);

        newAnRight1 = (Vec2D) curveNormal1
            .getRotated((float) (Math.PI / 2));
        newAnRight1.normalize();
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.