Package org.mt4j.components.visibleComponents.shapes

Examples of org.mt4j.components.visibleComponents.shapes.MTRectangle.scale()


        assertTrue(rect1.getWidthXY(TransformSpace.RELATIVE_TO_PARENT) - width3 <= epsilon);
        assertTrue(rect1.getHeightXY(TransformSpace.RELATIVE_TO_PARENT) - height3 <= epsilon);
       
       
        float width4 = width3*2;
        rect1.scale(2, 2, 1, new Vector3D(0,0,0));
        assertTrue(rect1.getWidthXY(TransformSpace.RELATIVE_TO_PARENT) - width4 <= epsilon);
       
        float width5 = width4*2;
        parent.scale(2, 2, 1, new Vector3D(0,0,0));
        assertTrue(rect1.getWidthXY(TransformSpace.GLOBAL) - width5 <= epsilon);
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.