Examples of rotX()


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

    Transform3D tfBox2 = new Transform3D();
    tfBox2.setTranslation(new Vector3f(-0.95f+r+shift,0.0f,0.0f));
    Transform3D rotation = new Transform3D();
    rotation.rotY(Math.PI/4);
    Transform3D rotationX = new Transform3D();
    rotationX.rotX(Math.PI/6);
    rotation.mul(rotationX);
    tfBox2.mul(rotation);
    TransformGroup tgBox2 = new TransformGroup(tfBox2);
    tgBox2.addChild(b2);
    theScene.addChild(tgBox2);
View Full Code Here

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

    //The transformation group of the cube.
    Transform3D tfFBox = new Transform3D();
    tfFBox.rotY(Math.PI/6);
    Transform3D rotationX = new Transform3D();
    rotationX.rotX(-Math.PI/5);
    tfFBox.mul(rotationX);
    TransformGroup tgFBox = new TransformGroup(tfFBox);
    tgFBox.addChild(fBox);

View Full Code Here

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

        Transform3D t3d = new Transform3D();
        Transform3D tDown = new Transform3D();
        Transform3D rot = new Transform3D();
        Vector3f v3f = new Vector3f(-1.6f, -1.35f, -6.5f);
        t3d.setTranslation(v3f);
        rot.rotX(Math.PI / 5);
        t3d.mul(rot);
        v3f = new Vector3f(0, -1.4f, 0f);
        tDown.setTranslation(v3f);
        t3d.mul(tDown);
        tg.setTransform(t3d);
View Full Code Here

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

    Transform3D tfBox2 = new Transform3D();
    tfBox2.setTranslation(new Vector3f(-0.95f+r+shift,0.0f,0.0f));
    Transform3D rotation = new Transform3D();
    rotation.rotY(Math.PI/4);
    Transform3D rotationX = new Transform3D();
    rotationX.rotX(Math.PI/6);
    rotation.mul(rotationX);
    tfBox2.mul(rotation);
    TransformGroup tgBox2 = new TransformGroup(tfBox2);
    tgBox2.addChild(b2);
    theScene.addChild(tgBox2);
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.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.media.j3d.Transform3D.rotX()

    final Transform3D transform3d = new Transform3D();
    if (aling == Achse.ALING_X)
      transform3d.rotZ(-Math.PI / 2);
    if (aling == Achse.ALING_Z)
      transform3d.rotX(Math.PI / 2);
    this.setTransform(transform3d);
    this.addChild(achse);

    final Transform3D transformSp = new Transform3D();
    transformSp.setTranslation(new Vector3f(0, Achse.LENGTH + Achse.WIDTH, 0));
View Full Code Here

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

   
    // Cylinder 1
    Transform3D trCyl1 = new Transform3D();
    trCyl1.set(new Vector3f(0.f,0.8f,0f));
    Transform3D trCyl1rot = new Transform3D();
    trCyl1rot.rotX(90*Math.PI/180);
    trCyl1.mul(trCyl1rot);
    TransformGroup trGcyl1 = new TransformGroup(trCyl1);
    Cylinder cyl1 = new Cylinder(0.2f,0.5f,appCyl);
    trGcyl1.addChild(cyl1);
   
View Full Code Here

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

   
    // box1
    Transform3D tr1 = new Transform3D();
   
        Transform3D trRot2 = new Transform3D()
    trRot2.rotX(rot2*Math.PI/180);
    tr1.mul(trRot2);
   
    Transform3D tr11 = new Transform3D();
    tr11.set(new Vector3f(0f,-0.5f,0f));
    tr1.mul(tr11);
View Full Code Here

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

    tr2.set(new Vector3f(0f,-0.5f,0.3f));
    tr1.mul(tr2);
   
    Transform3D tr3 = new Transform3D();
    //tr3.rotX(30*Math.PI/180);
    tr3.rotX(rot3*Math.PI/180);

    // Cylinder 3
    Transform3D trCyl3 = new Transform3D();
    //trCyl3.set(new Vector3f(0f,-1.5f,0f));
   
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.