Package javax.vecmath

Examples of javax.vecmath.Matrix3d.transform()


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

    public Vector2d getAcceleration() {
        return acceleration;
View Full Code Here


        hMatrix.m20 = h13; // h31 = h13
        hMatrix.m21 = h23; // h32 = h22
        hMatrix.m22 = h33;
        hMatrix.invert();
        Point3d check = new Point3d(b1, b2, b3);
        hMatrix.transform(check);

        System.err.println("check point = " + check.x+" " +
      check.y+" " + check.z);
    }
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.