Examples of MutableMatrix4d


Examples of de.ailis.gramath.MutableMatrix4d

    private void enterMatrix(final Attributes attributes)
    {
        final MatrixTransform transform = new MatrixTransform();
        transform.setSid(attributes.getValue("sid"));

        final MutableMatrix4d matrix = transform.getMatrix();
        this.chunkFloatReader = new ChunkFloatReader()
        {
            private int index = 0;

            @Override
            protected void valueFound(final double value)
            {
                matrix.setElement(this.index / 4, this.index % 4, value);
                this.index++;
            }
        };
        this.node.getTransforms().add(transform);
        enterElement(ParserMode.MATRIX);
View Full Code Here

Examples of de.ailis.gramath.MutableMatrix4d

        final MatrixTransform matrixTransform = (MatrixTransform) transforms
                .get(1);
        assertSame(doc, matrixTransform.getDocument());
        assertSame(rootNode, matrixTransform.getParent());
        assertEquals("node-1-matrix", matrixTransform.getSid());
        assertEquals(new MutableMatrix4d(0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10,
            14, 3, 7, 11, 15), matrixTransform.getMatrix());

        // Check rotate transformation
        final RotateTransform rotateTransform = (RotateTransform) transforms
                .get(2);
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.