}
public void testAABBRayIntersect() {
AABB box = AABB.fromMinMax(new Vec3D(), new Vec3D(100, 100, 100));
Ray3D r = new Ray3D(new Vec3D(50, 10, 10), new Vec3D(0, 1, 0));
System.out.println(box.intersectsRay(r, -1000, 1000));
}
public void testAABBSphere() {
AABB box = new AABB(new Vec3D(100, 0, 0), new Vec3D(20, 20, 20));
Sphere s = new Sphere(new Vec3D(100, 0, 0), 50);