Package toxi.geom

Examples of toxi.geom.Vec2D.subSelf()


  }

  public static Vec2D rotate(Vec2D curVec, Vec2D center, float r) {
    Vec2D returnVec = curVec.copy();
    returnVec.subSelf(center);
    returnVec.rotate(r);
    returnVec.addSelf(center);
    return returnVec;
   
   
View Full Code Here


  }

  public static Vec2D rotate(Vec2D curVec, Vec2D center, float r) {
    Vec2D returnVec = curVec.copy();
    returnVec.subSelf(center);
    returnVec.rotate(r);
    returnVec.addSelf(center);
    return returnVec;
   
   
View Full Code Here

      Vec2D dirEnd = endLeft.copy().sub(endRight).rotate((float) (Math.PI / 2));
      dirEnd.normalize();

      Vec2D bezierLeftEnd = this.outineLeft.get(
          this.outineLeft.size() - 1).copy();
      bezierLeftEnd.subSelf(dirEnd.scale(endLen * 1.5f));

      Vec2D bezierRightEnd = this.outineRight.get(
          this.outineRight.size() - 1).copy();
      bezierRightEnd.subSelf(dirEnd.scale(endLen * 1.5f));

 
View Full Code Here

          this.outineLeft.size() - 1).copy();
      bezierLeftEnd.subSelf(dirEnd.scale(endLen * 1.5f));

      Vec2D bezierRightEnd = this.outineRight.get(
          this.outineRight.size() - 1).copy();
      bezierRightEnd.subSelf(dirEnd.scale(endLen * 1.5f));

 
      // bezierLeftEnd.addSelf(new Vec2D(100,100));

     
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.