Package com.bramosystems.oss.player.core.client.geom

Examples of com.bramosystems.oss.player.core.client.geom.TransformationMatrix.rotate()


    @Test
    public void testRotate() {
        System.out.println("rotate");
        double angle = 6.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.rotate(angle);

        double cos = Math.cos(angle);
        double sin = Math.sin(angle);
        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setX(cos);
View Full Code Here


            if (player != null && player instanceof MatrixSupport) {
                TransformationMatrix matrix = ((MatrixSupport) player).getMatrix();

                switch (option) {
                    case Rotate:
                        matrix.rotate(Math.toRadians(value));
                        break;
                    case Scale:
                        matrix.scale(value, value);
                        break;
                    case Skew:
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.