Package javax.vecmath

Examples of javax.vecmath.Matrix3d.rotZ()


        direction = dir;
    }
   
    public void setDirection(double angle) {
      Matrix3d mat = new Matrix3d();
      mat.rotZ(angle);
      Vector3d tmp = new Vector3d(1, 0, 0);
      mat.transform(tmp);
      direction = new Vector2d(tmp.x, tmp.y);
    }
View Full Code Here


  public BranchGroup createSceneGraph2()
  {
      Java3DFactory objectFactory = new Java3DFactory();
    Matrix3d rot = new Matrix3d();
    rot.setIdentity();
    rot.rotZ(1.5);
    Transform3D zRotation = new Transform3D(rot, new Vector3d(), 1);
    TransformGroup objTrans3 = new TransformGroup(zRotation);
    objTrans3.addChild(objectFactory.createCylinder(0.5, 3, 2, 0, 0));
   
    Entry<BoundingSphere, BranchGroup> entry = Java3DUtils.createDefaultBranchGroup(
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.