new Vec3D(50, 50, 50)));
assertEquals(points.size() == 3, true);
}
public void testQuadtree() {
PointQuadtree t = new PointQuadtree(null, 0, 0, 100, 100);
assertEquals(t.index(new Vec2D(0, 0)), true);
assertEquals(t.index(new Vec2D(1, 1)), true);
assertEquals(t.index(new Vec2D(4, 0)), true);
PointQuadtree leaf1 = t.findNode(new Vec2D(0, 0));
PointQuadtree leaf2 = t.findNode(new Vec2D(4, 0));
assertNotSame(leaf1, leaf2);
List<Vec2D> points = t.itemsWithinRect(new Rect(0, 0, 2, 2), null);
assertEquals(2, points.size());
}