public void Insert(KDTreeValue val, Bounds b) { if (values == null) { if (split <= b.max[splittingAxis]) { left.Insert(val, b); } if (split >= b.min[splittingAxis]) { right.Insert(val, b); } } else { values.Add(val); } }
public void Insert(T obj, Bounds b) { KDTreeValue v = new KDTreeValue(obj, b); node.Insert(v, b); }