Package toxi.geom

Examples of toxi.geom.SphereIntersectorReflector


        p.set(0, 10.1f, 0);
        assertEquals(s.containsPoint(p), false);
    }

    public void testReflectRay() {
        SphereIntersectorReflector si = new SphereIntersectorReflector(
                new Vec3D(0, 0, 0), 10);
        Ray3D r = si.reflectRay(new Ray3D(new Vec3D(100, 100, 0), new Vec3D(-1,
                -1, 0)));
        float absDiff = r.getDirection().angleBetween(new Vec3D(1, 1, 0), true);
        System.out.println(r + " diff: " + absDiff);
        assertEquals(absDiff < 0.002, true);
    }
View Full Code Here

TOP

Related Classes of toxi.geom.SphereIntersectorReflector

Copyright © 2018 www.massapicom. 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.