Package toxi.geom

Examples of toxi.geom.Rect.intersectsRect()


    public void testIsec() {
        Rect a = new Rect(100, 100, 100, 100);
        Rect b = new Rect(110, 110, 10, 10);
        assertTrue(a.intersectsRect(b));
        assertTrue(b.intersectsRect(a));
        b = new Rect(80, 80, 30, 200);
        assertTrue(a.intersectsRect(b));
    }

    public void testRectMerge() {
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.