public static IEnumerable <Volume> Broadphase(BaseBVHController <Volume> bvh, FastBounds bb) { foreach (var v in bvh.Intersect(bb)) { yield return(v); } }
public static IList <Volume> Broadphase(BaseBVHController <Volume> bvh, FastBounds bb, IList <Volume> result) { return(bvh.Intersect(bb, result)); }