Examples of orthonormalizeUpperLeft()


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

   
    Matrix m = new Matrix(this.getLocalMatrix());
//        m.orthonormalizeLocal();
    //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);
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.