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

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


    public void testScale() {
        System.out.println("scale");
        double x = 4.0;
        double y = 4.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.scale(x, y);

        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setX(x);
        instance2.getMatrix().getVy().setY(y);
View Full Code Here


    public void testScaleAndTranslate() {
        System.out.println("scaleAndTranslate");
        double x = 2.0;
        double y = 3.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.scale(x, y);
        instance.translate(x, y);

        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setZ(x);
        instance2.getMatrix().getVy().setZ(y);
View Full Code Here

        System.out.println("translateAndScale");
        double x = 2.0;
        double y = 3.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.translate(x, y);
        instance.scale(x, y);

        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setZ(x);
        instance2.getMatrix().getVy().setZ(y);
        instance2.getMatrix().getVx().setX(x);
View Full Code Here

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