Package cc.plural.math

Examples of cc.plural.math.Matrix4f


public class RenderComponent extends Component {
   
    Matrix4f modelMatrix;

    public RenderComponent() {
        modelMatrix = new Matrix4f();
    }
View Full Code Here


    /**
     * Test of setMatrix2D method, of class OrthogonalProjection.
     */
    public void testSetMatrix2D() {
        System.out.println("setMatrix2D");
        Matrix4f matrix = Matrix4f.identity();
        OrthogonalProjection instance = new OrthogonalProjection(0, 800, 600, 0, 0, 1);
       
       
        Matrix4f expResult = null;
        Matrix4f result = instance.setMatrix2D(matrix);
        System.out.println(result);
        result.print(4, 4);
    }
View Full Code Here

        for(int i = 0; i < matrix44Buffer.capacity(); i++) {
            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();

        Matrix4f matrix = Matrix4f.identity();
        OrthogonalProjection instance = new OrthogonalProjection(0, 8, 6, 0);
        Matrix4f expResult = null;
        instance.load(matrix);

        //FloatBuffer matrix44Buffer = BufferUtils.createFloatBuffer(16);
        matrix44Buffer.flip();
        matrix.loadColumnMajor(matrix44Buffer);
View Full Code Here

TOP

Related Classes of cc.plural.math.Matrix4f

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.