Package java.nio

Examples of java.nio.FloatBuffer.capacity()


        projectionMatrix.store(matrix44Buffer);
        matrix44Buffer.flip();

        System.out.println("Matrix:\r\n" + projectionMatrix.toString());
        System.out.println("Array:\r\n" + matrix44Buffer.toString());
        for(int i = 0; i < matrix44Buffer.capacity(); i++) {
            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();
    }
View Full Code Here


        projectionMatrix.loadColumnMajor(matrix44Buffer);
        matrix44Buffer.flip();

        System.out.println("Matrix:\r\n" + projectionMatrix.toString());
        System.out.println("Array:\r\n" + matrix44Buffer.toString());
        for(int i = 0; i < matrix44Buffer.capacity(); i++) {
            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();
    }
}
View Full Code Here

        org.lwjgl.util.vector.Matrix4f referenceMatrix = new org.lwjgl.util.vector.Matrix4f();
        createReferenceOrthogonalMatrix(referenceMatrix);
        referenceMatrix.store(matrix44Buffer);
        matrix44Buffer.flip();
        System.out.println("Reference Array:\r\n" + matrix44Buffer.toString());
        for(int i = 0; i < matrix44Buffer.capacity(); i++) {
            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();

        Matrix4f matrix = Matrix4f.identity();
View Full Code Here

        matrix44Buffer.flip();
        matrix.loadColumnMajor(matrix44Buffer);
        matrix44Buffer.flip();

        System.out.println("ECS Array:\r\n" + matrix44Buffer.toString());
        for(int i = 0; i < matrix44Buffer.capacity(); i++) {
            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();

        //assertEquals(expResult, result);
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.