Package org.mt4j.util.math

Examples of org.mt4j.util.math.Matrix.scale()


    //can we use 3x3 otrhogonalization on a 4x4 matrix just using the middle part?
    //-seems yes
    m.orthonormalizeUpperLeft();
        //Re-Apply scale because its removed at orthonormalization
//        m.mult(Matrix.getScalingMatrix(Vector3D.ZERO_VECTOR, scale.x, scale.y, scale.z), m);
        m.scale(scale);
        //Automatically inverts() the localMatrix, so exact inverse again! :)
        this.setLocalMatrix(m);
       
//        v2.transform(this.getLocalMatrix());
//        System.out.println("Diff: " + v2.getSubtracted(v1));
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.