Examples of rotY()


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

        // Generate a transformation group for the loaded object.
        Transform3D tfObject = new Transform3D();
        tfObject.rotZ(0.4 * Math.PI);
        Transform3D xRotation = new Transform3D();
        xRotation.rotY(0.4 * Math.PI);
        tfObject.mul(xRotation);
        TransformGroup tgObject = new TransformGroup(tfObject);
        tgObject.addChild(s.getSceneGroup());

        // In the following way, the names of the parts of the object can be
View Full Code Here

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

    //Generate the platform in the form of a cube.
    Box platform = new Box(platformSize,platformSize,platformSize,redApp);

    //A transformation rotating the platform a little bit.
    Transform3D tfPlatform = new Transform3D();
    tfPlatform.rotY(Math.PI/6);

    //The transformation group of the platform.
    TransformGroup tgPlatform = new TransformGroup(tfPlatform);
    tgPlatform.addChild(platform);
View Full Code Here

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

    //Generate the platform in the form of a cube.
    Box platform = new Box(platformSize,platformSize,platformSize,redApp);

    //A transformation rotating the platform a little bit.
    Transform3D tfPlatform = new Transform3D();
    tfPlatform.rotY(Math.PI/6);

    //The transformation group of the platform.
    TransformGroup tgPlatform = new TransformGroup(tfPlatform);
    tgPlatform.addChild(platform);
View Full Code Here

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

    //Generate the platform in the form of a cube.
    Box platform = new Box(platformSize,platformSize,platformSize,redApp);

    //A transformation rotating the platform a little bit.
    Transform3D tfPlatform = new Transform3D();
    tfPlatform.rotY(Math.PI/6);

    //The transformation group of the platform.
    TransformGroup tgPlatform = new TransformGroup(tfPlatform);
    tgPlatform.addChild(platform);
View Full Code Here

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

 
  public void deplacerCamera(float x, float y, float z, float theta, float phi){
    Transform3D mouvement = new Transform3D();
    Transform3D rotation = new Transform3D();
      mouvement.setTranslation(new Vector3f (x, y, z));
      rotation.rotY(theta);
      mouvement.mul(rotation);
      simpleU.getViewingPlatform().getViewPlatformTransform().setTransform(mouvement);
  }
 
  public void dessinerLigne(List<Point> ligne){
View Full Code Here

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

 
  public void deplacerVoiture1(float x, float y, float z, float theta, float phi) {
    Transform3D mouvement = new Transform3D();
    Transform3D rotation = new Transform3D();
      mouvement.setTranslation(new Vector3f (x, y, z));
      rotation.rotY(theta - Math.PI/2);
      mouvement.mul(rotation);
      voiture1tg.setTransform(mouvement);
  }
 
  public void deplacerVoiture2(float x, float y, float z, float theta, float phi) {
View Full Code Here

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

 
  public void deplacerVoiture2(float x, float y, float z, float theta, float phi) {
    Transform3D mouvement = new Transform3D();
    Transform3D rotation = new Transform3D();
      mouvement.setTranslation(new Vector3f (x, y, z));
      rotation.rotY(theta - Math.PI/2);
      mouvement.mul(rotation);
      voiture2tg.setTransform(mouvement);
  }

  public void setHeure(float heure) {
View Full Code Here

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

    tgmBox.addChild(boxRotation);


    //A transformation group for positioning 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(tgmBox);
View Full Code Here

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

    Box myBox = new Box(0.2f,0.2f,0.2f,boxApp);

    //Rotate and shift the cube slightly.
    Transform3D tfBox = new Transform3D();
    tfBox.rotY(Math.PI/6);
    tfBox.rotX(Math.PI/9);
    Transform3D shift = new Transform3D();
    shift.setTranslation(new Vector3f(-0.6f,-0.2f,0.1f));
    tfBox.mul(shift);
    TransformGroup tgBox = new TransformGroup(tfBox);
View Full Code Here

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


    //Create a transformgroup for the positioning of the box and add the
    //transformgroup with the rotation.
    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);
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.