Package toxi.geom

Examples of toxi.geom.Vec2D.copy()


  public void mouseDragged(float mouseX, float mouseY) {
    Vec2D v = GLOBAL.uiTools.getPointOnPlane(new Vec2D(mouseX, mouseY),
        this.getPlane());
    this.getSketch().mouseDragged(v.x, v.y);
    if (SETTINGS.DEBUG) {
      debugMousePoint = v.copy();
    }
  }

  public void mousePressed(float mouseX, float mouseY) {
    Vec2D v = GLOBAL.uiTools.getPointOnPlane(new Vec2D(mouseX, mouseY),
View Full Code Here


        if ((pointOnPath != null && closestPoint == null)
            || (pointOnPath != null && pointOnPath
                .distanceTo(new Vec2D(x, y)) < closestPoint
                .distanceTo(new Vec2D(x, y)))) {
          closestPoint = new SketchPoint(pointOnPath.copy());
          closestShape = curSketch;

        }

      }
View Full Code Here

      this.path.addBezier(
          startLeft,startLeft.copy(), bezierLeftStart
              .copy());
      this.path.addBezier(startRight,
          bezierRightStart.copy(), startRight.copy());

    }

    if (this.getCap() == SketchSpline.CAP_PARRALEL && this.outineLeft.size() >= 2) {
      // remember starts and ends
View Full Code Here

      this.path.addBezier(
          startLeft,
      startLeft.copy(), bezierLeftStart
              .copy());
      this.path.addBezier(startRight,
          bezierRightStart.copy(), startRight.copy());

      /*
       * END Cap now
       */

 
View Full Code Here

      this.path
          .addBezier(
              endLeft,bezierLeftEnd.copy(), endLeft
                  .copy());
      this.path.addBezier(endRight,
          endRight.copy(), bezierRightEnd.copy());

      //}

      /*
      if (this.offsetType == SketchSpline.OFFSET_RIGHT
View Full Code Here

                        a.set(a0);
                        b.set(b0);
                    }
                    mesh.addFace(pa, pb, a, pauv.copy(), pbuv.copy(),
                            auv.copy());
                    mesh.addFace(pb, b, a, pbuv.copy(), buv.copy(), auv.copy());
                } else {
                    a0.set(a);
                    b0.set(b);
                }
                pa.set(a);
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.