Examples of rotX()


Examples of javax.media.j3d.Transform3D.rotX()

    }

    public void testGetRotationFromTransformX() {
        Transform3D transform3D = new Transform3D();
        double rotationAngle = Randomizer.randomRotation();
        transform3D.rotX(rotationAngle);
        double angle = TransformerHelper.getRotationFromTransform(transform3D, Axis.X);
        assertEquals(rotationAngle, angle, 0.000001);
    }

    public void testGetRotationFromTransformY() {
View Full Code Here

Examples of javax.media.j3d.Transform3D.rotX()

    }

    public void testGetRotationFromTransformX() {
        Transform3D transform3D = new Transform3D();
        double rotationAngle = Randomizer.randomRotation();
        transform3D.rotX(rotationAngle);
        double angle = TransformerHelper.getRotationFromTransform(transform3D, Axis.X);
        assertEquals(rotationAngle, angle, 0.000001);
    }

    public void testGetRotationFromTransformY() {
View Full Code Here

Examples of javax.media.j3d.Transform3D.rotX()

    public static Transform3D getRotationTransform3D(double rotationAngle, Axis axis) {
        Transform3D rotation = new Transform3D();
        switch (axis) {
        case X:
            rotation.rotX(rotationAngle);
            break;
        case Y:
            rotation.rotY(rotationAngle);
            break;
        case Z:
View Full Code Here

Examples of javax.vecmath.Matrix4d.rotX()

/*     */   {
/* 284 */     debugOutputLn(1, "setRotMat()");
/* 285 */     debugOutputLn(2, " p, h, b = " + this.pitch + ", " + this.heading + ", " + this.bank);
/*     */
/* 289 */     Matrix4d pitchMat = new Matrix4d();
/* 290 */     pitchMat.rotX(-this.pitch);
/* 291 */     Matrix4d bankMat = new Matrix4d();
/* 292 */     bankMat.rotZ(this.bank);
/* 293 */     mat.rotY(-this.heading);
/* 294 */     mat.mul(pitchMat);
/* 295 */     mat.mul(bankMat);
View Full Code Here

Examples of javax.vecmath.Matrix4f.rotX()

        mulMatrix(mat);
        glTranslatef(0.0f, 0.0f, -halfHeight);
        break;
      case 1:
        //glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
        mat.rotX((float)Math.PI * -0.5f);
        mulMatrix(mat);
        glTranslatef(0.0f, 0.0f, -halfHeight);
        break;
      case 2:
        glTranslatef(0.0f, 0.0f, -halfHeight);
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.