Examples of intersectsTriangle()


Examples of toxi.geom.AABB.intersectsTriangle()

        AABB box = new AABB(new Vec3D(), new Vec3D(100, 100, 100));
        Vec3D a = new Vec3D(-90, 0, 0);
        Vec3D b = new Vec3D(-110, -200, 0);
        Vec3D c = new Vec3D(-110, 200, 0);
        Triangle3D tri = new Triangle3D(a, b, c);
        System.out.println(box.intersectsTriangle(tri));
    }

    public void testInclude() {
        AABB box = AABB.fromMinMax(new Vec3D(), new Vec3D(100, 100, 100));
        System.out.println(box);
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.