Examples of intersectsBox()


Examples of toxi.geom.AABB.intersectsBox()

    public void testIsec() {
        AABB box = AABB.fromMinMax(new Vec3D(), new Vec3D(100, 100, 100));
        AABB box2 = AABB.fromMinMax(new Vec3D(10, 10, 10),
                new Vec3D(80, 80, 80));
        assertTrue(box.intersectsBox(box2));
        assertTrue(box2.intersectsBox(box));
    }

    public void testIsInAABB() {
        AABB box = new AABB(new Vec3D(100, 0, 0), new Vec3D(20, 20, 20));
        ReadonlyVec3D p = new Vec3D(80, -19.99f, 0);
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.