public void Insert(T element, Bound2D box) { if (!box.Intersect(treeBox)) { //todo log } InsertElementRecursive(element, box); }
private void GetIntersectingElements(Bound2D box, List <T> elementsOut) { foreach (var node in nodeList) { if (box.Intersect(node.bound)) { elementsOut.Add(node.element); } } }