Package fcagnin.jglsdk.glm

Examples of fcagnin.jglsdk.glm.Mat3


    private Mat3 rotateX(float angDeg) {
        float angRad = degToRad( angDeg );
        float cos = (float) Math.cos( angRad );
        float sin = (float) Math.sin( angRad );

        Mat3 theMat = new Mat3( 1.0f );
        theMat.set( 1, 1, cos );
        theMat.set( 2, 1, -sin );
        theMat.set( 1, 2, sin );
        theMat.set( 2, 2, cos );
        return theMat;
    }
View Full Code Here


    private Mat3 rotateY(float angDeg) {
        float angRad = degToRad( angDeg );
        float cos = (float) Math.cos( angRad );
        float sin = (float) Math.sin( angRad );

        Mat3 theMat = new Mat3( 1.0f );
        theMat.set( 0, 0, cos );
        theMat.set( 2, 0, sin );
        theMat.set( 0, 2, -sin );
        theMat.set( 2, 2, cos );
        return theMat;
    }
View Full Code Here

    private Mat3 rotateZ(float angDeg) {
        float angRad = degToRad( angDeg );
        float cos = (float) Math.cos( angRad );
        float sin = (float) Math.sin( angRad );

        Mat3 theMat = new Mat3( 1.0f );
        theMat.set( 0, 0, cos );
        theMat.set( 1, 0, -sin );
        theMat.set( 0, 1, sin );
        theMat.set( 1, 1, cos );
        return theMat;
    }
View Full Code Here

TOP

Related Classes of fcagnin.jglsdk.glm.Mat3

Copyright © 2018 www.massapicom. 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.