/// <summary> /// Remove an item from this node and all branch nodes that contain it /// </summary> /// <param name="item"></param> public void Remove(T item) { if (_Children.Contains(item)) { _Children.Remove(item); if (_SplitDimension != CoordinateAxis.Undefined) { for (int i = 0; i < _Branches.Length; i++) { DDTreeNode <T> branch = _Branches[i]; if (branch != null) { branch.Remove(item); } } } } }
/// <summary> /// Remove an item from the tree /// </summary> /// <param name="item"></param> public void Remove(T item) { _RootNode.Remove(item); }