Examples of rotateX()


Examples of processing.core.PGraphics.rotateX()

    } else {
      diagramImg.translate(w / 2, h / 2, 0);

      if (rotateX == -1 && rotateY == -1) {
        diagramImg.rotateX(GLOBAL.rotateModelsX);
        diagramImg.rotateY(GLOBAL.rotateModelsY);
      } else {
        diagramImg.rotateX(rotateX);
        diagramImg.rotateY(rotateY);
      }
View Full Code Here

Examples of processing.core.PGraphics.rotateX()

      if (rotateX == -1 && rotateY == -1) {
        diagramImg.rotateX(GLOBAL.rotateModelsX);
        diagramImg.rotateY(GLOBAL.rotateModelsY);
      } else {
        diagramImg.rotateX(rotateX);
        diagramImg.rotateY(rotateY);
      }

      diagramImg.scale((float) GLOBAL.getZOOM());
      diagramImg.scale(scale);
View Full Code Here

Examples of processing.core.PMatrix3D.rotateX()

      m.translate(bone.getXposition(), bone.getYposition(), bone.getZposition());
      m.translate(bone.getOffsetX(), bone.getOffsetY(), bone.getOffsetZ());
     
      m.rotateY(PApplet.radians(bone.getYrotation()));
      m.rotateX(PApplet.radians(bone.getXrotation()));
      m.rotateZ(PApplet.radians(bone.getZrotation()));
     
      bone.global_matrix = m;

      if (bone.getParent() != null && bone.getParent().global_matrix != null)
View Full Code Here

Examples of processing.core.PMatrix3D.rotateX()

      m.translate(bone.getXposition(), bone.getYposition(), bone.getZposition());
      m.translate(bone.getOffsetX(), bone.getOffsetY(), bone.getOffsetZ());
     
      m.rotateY(PApplet.radians(bone.getYrotation()));
      m.rotateX(PApplet.radians(bone.getXrotation()));
      m.rotateZ(PApplet.radians(bone.getZrotation()));
     
      bone.global_matrix = m;

      if (bone.getParent() != null && bone.getParent().global_matrix != null)
View Full Code Here

Examples of toxi.geom.Matrix4x4.rotateX()

public class MatrixTest extends TestCase {

    public void testInverse() {
        Matrix4x4 m = new Matrix4x4();
        m.translateSelf(100, 100, 0);
        m.rotateX(MathUtils.HALF_PI);
        m.scaleSelf(10, 10, 10);
        System.out.println(m);
        Vec3D v = new Vec3D(0, 1, 0);
        Vec3D w = m.applyTo(v);
        m = m.getInverted();
View Full Code Here

Examples of toxi.geom.Matrix4x4.rotateX()

        assertTrue(v2.equalsWithTolerance(v, 0.0001f));
    }

    public void testRotate() {
        Matrix4x4 m = new Matrix4x4();
        m.rotateX(MathUtils.HALF_PI);
        Vec3D v = m.applyTo(new Vec3D(0, 1, 0));
        assertTrue(new Vec3D(0, 0, 1).equalsWithTolerance(v, 0.00001f));
        m.identity();
        m.rotateY(MathUtils.HALF_PI);
        v = m.applyTo(new Vec3D(1, 0, 0));
View Full Code Here

Examples of toxi.geom.Vec3D.rotateX()

      //intersect.x += 70; 
      //  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());
 
View Full Code Here

Examples of toxi.geom.Vec3D.rotateX()

                  if (rotateAn < Math.PI / 2
                      || rotateAn > (Math.PI / 2) * 3)
                    rotateAn = (float) ((Math.PI * 2) - Math
                        .abs(rotateAn));

                  intersect.rotateX(rotateAn);

                  List<Vec2D> listItem = new ArrayList<Vec2D>();
                  listItem.add(new Vec2D(intersect.x,
                      intersect.y));
                  listItem.add(intexsecX);
View Full Code Here

Examples of toxi.geom.Vec3D.rotateX()

              if (rotateAn < Math.PI / 2
                  || rotateAn > (Math.PI / 2) * 3)
                rotateAn = (float) ((Math.PI * 2) - Math
                    .abs(rotateAn));

              intersect.rotateX(rotateAn);

              List<Vec2D> listItem = new ArrayList<Vec2D>();
              listItem.add(new Vec2D(intersect.x, intersect.y));
              listItem.add(intexsecX);

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.