Examples of rotateY()


Examples of aspect.util.Matrix4x4.rotateY()

            float x = -PlayerControl.getMouseDX() * mouseSensitivity;

            PlayerControl.centerMouse();

            Matrix4x4 m = Matrix4x4.identity();
            m = m.rotateY(x);

            m = m.rotate(internalView.right(), y);

            internalView.forward = m.transformVector(internalView.forward);

View Full Code Here

Examples of ca.eandb.jmist.framework.lens.TransformableLens.rotateY()

  private static Lens createLens() {

    TransformableLens lens = new TransformableLens(
        PinholeLens.fromHfovAndAspect(2.0 * Math.atan2(0.25 / 2.0, 0.35), 1.0));

    lens.rotateY(Math.PI);
    lens.translate(new Vector3(278.0, 273.0, -800.0));

    return lens;

  }
View Full Code Here

Examples of ca.eandb.jmist.framework.lens.TransformableLens.rotateY()

  private static Lens createLens() {

    TransformableLens lens = new TransformableLens(
        PinholeLens.fromHfovAndAspect(2.0 * Math.atan2(0.25 / 2.0, 0.35), 1.0));

    lens.rotateY(Math.PI);
    lens.translate(new Vector3(278.0, 273.0, -800.0));

    return lens;

  }
View Full Code Here

Examples of com.sk89q.worldedit.math.transform.AffineTransform.rotateY()

            player.printDebug("Note: Interpolation is not yet supported, so angles that are multiples of 90 is recommended.");
        }

        ClipboardHolder holder = session.getClipboard();
        AffineTransform transform = new AffineTransform();
        transform = transform.rotateY(-(yRotate != null ? yRotate : 0));
        transform = transform.rotateX(-(xRotate != null ? xRotate : 0));
        transform = transform.rotateZ(-(zRotate != null ? zRotate : 0));
        holder.setTransform(holder.getTransform().combine(transform));
        player.print("The clipboard copy has been rotated.");
    }
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.rotateY()

        MatrixStack currMatrix = new MatrixStack();
        currMatrix.translate( 0.0f, 0.0f, -200.0f );
        currMatrix.rotateX( gimbalAngles.angleX );
        drawGimbal( currMatrix, GimbalAxis.X_AXIS, new Vec4( 0.4f, 0.4f, 1.0f, 1.0f ) );
        currMatrix.rotateY( gimbalAngles.angleY );
        drawGimbal( currMatrix, GimbalAxis.Y_AXIS, new Vec4( 0.0f, 1.0f, 0.0f, 1.0f ) );
        currMatrix.rotateZ( gimbalAngles.angleZ );
        drawGimbal( currMatrix, GimbalAxis.Z_AXIS, new Vec4( 1.0f, 0.3f, 0.3f, 1.0f ) );

        glUseProgram( theProgram );
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.mesh.MTSphere.rotateY()

          }}).start();
        //Rotate the moon around ints own center
        new Animation("moon animation around own axis", new MultiPurposeInterpolator(0,360, 9000, 0, 1, -1) , moonSphere).addAnimationListener(new IAnimationListener(){
          public void processAnimationEvent(AnimationEvent ae) {
            moonSphere.rotateZ(moonSphere.getCenterPointLocal(), -3*ae.getCurrentStepDelta(), TransformSpace.LOCAL);
            moonSphere.rotateY(moonSphere.getCenterPointLocal(), 0.5f*ae.getCurrentStepDelta(), TransformSpace.LOCAL);
          }}).start();
        earth.addChild(moonSphere);
  }


View Full Code Here

Examples of org.osm2world.core.target.common.rendering.Camera.rotateY()

        camera.moveMapRight(movementX);
       
      } else if (rotationDrag) {
         
        /* view left/right */
        camera.rotateY(movementX/100);
       
        /* view up/down */
        camera.mapPitch(movementY/-100);
     
      } else if (movementDrag) {
View Full Code Here

Examples of processing.core.PGraphics.rotateY()

    // this.applyTranslationMatrix(g);

    saveImg.translate(-minX + border, -minY + border);
    saveImg.translate(width / 2, height / 2, -(this.getWidth() / 4));
    saveImg.rotateX(rotateX);
    saveImg.rotateY(rotateY);
    saveImg.translate(-width / 2, -height / 2, (this.getWidth() / 4));
    this.render(saveImg);
    // this.renderSilhouette(saveImg);

    saveImg.popMatrix();
View Full Code Here

Examples of processing.core.PGraphics.rotateY()

      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);
      }
      diagramImg.scale((float) GLOBAL.getZOOM());
View Full Code Here

Examples of processing.core.PGraphics.rotateY()

      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);

      //we scaled up so now we need to scale the window width move
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.