Examples of Matrix3


Examples of jinngine.math.Matrix3

    @Test
    public void testRowVectors() {
        final Vector3 r1 = new Vector3();
        final Vector3 r2 = new Vector3();
        final Vector3 r3 = new Vector3();
        new Matrix3(
                1., 2., 3.,
                4., 5., 6.,
                7., 8., 9.).getRowVectors(r1, r2, r3);
        assertEquals(1., r1.x);
        assertEquals(2., r1.y);
View Full Code Here

Examples of jinngine.math.Matrix3

        assertEquals(9., r3.z);
    }

    @Test(expected = NullPointerException.class)
    public void testRowVectors02() {
        new Matrix3().getRowVectors(null, new Vector3(), new Vector3());
    }
View Full Code Here

Examples of jinngine.math.Matrix3

        new Matrix3().getRowVectors(null, new Vector3(), new Vector3());
    }

    @Test(expected = NullPointerException.class)
    public void testRowVectors03() {
        new Matrix3().getRowVectors(new Vector3(), null, new Vector3());
    }
View Full Code Here

Examples of org.geotools.referencing.operation.matrix.Matrix3

        parameters.parameter("false_northing").setValue(2000);
        transform = factory.createParameterizedTransform(parameters);
        targetCRS = new DefaultProjectedCRS("source", WGS84, transform, PROJECTED);

        conversion = ProjectionAnalyzer.createLinearConversion(sourceCRS, targetCRS, EPS);
        assertEquals(new Matrix3(
            101000,
            012000,
            00,     1
        ), conversion);

        parameters.parameter("scale_factor").setValue(2);
        transform = factory.createParameterizedTransform(parameters);
        targetCRS = new DefaultProjectedCRS("source", WGS84, transform, PROJECTED);

        conversion = ProjectionAnalyzer.createLinearConversion(sourceCRS, targetCRS, EPS);
        assertEquals(new Matrix3(
            201000,
            022000,
            00,     1
        ), conversion);
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.