Package toxi.geom

Examples of toxi.geom.Vec3D.rotateY()


      //  System.out.println("before rotate " +intersect);
      //  intersect.subSelf(focusCentre.scale(GLOBAL.getZOOM()));

      //   intersect.
      intersect.rotateX(-GLOBAL.rotateModelsX);
      intersect.rotateY(-GLOBAL.rotateModelsY);

      intersect.addSelf(focusCentre);

      //intersect.x += (GLOBAL.CAM_OFFSET_X*GLOBAL.getZOOM());
      //intersect.y += GLOBAL.CAM_OFFSET_Y;
View Full Code Here


            0);

        if (this.getPlane().normal.z == -1) {
          pointOnePlane.z = this.getPlane().z;
        } else {
          pointOnePlane = pointOnePlane.rotateY(PApplet.PI / 2);

          float planeAngle = functions.angleOf(new Vec2D(this
              .getPlane().normal.x, this.getPlane().normal.y));
          pointOnePlane = pointOnePlane.rotateZ(-planeAngle);
          pointOnePlane.x += this.getPlane().x;
View Full Code Here

                if (intersect != null) {

                  intersect.subSelf(slicePlane.getPlane());

                  intersect
                      .rotateY((float) (functions.angleOf(new Vec2D(
                          slicePlane.getPlane().normal.x,
                          slicePlane.getPlane().normal.z)) - (Math.PI / 2)));

                  float rotateAn = (functions
View Full Code Here

              Vec2D intexsecX = new Vec2D(intersect.x,
                  intersect.y);

              intersect.subSelf(slicePlane.getPlane());

              intersect
                  .rotateY((float) (functions.angleOf(new Vec2D(
                      slicePlane.getPlane().normal.x,
                      slicePlane.getPlane().normal.z)) - (Math.PI / 2)));

              float rotateAn = (functions.angleOf(new Vec2D(
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.