예제 #1
0
 /// <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);
                 }
             }
         }
     }
 }
예제 #2
0
파일: DDTree.cs 프로젝트: lulzzz/Nucleus
 /// <summary>
 /// Remove an item from the tree
 /// </summary>
 /// <param name="item"></param>
 public void Remove(T item)
 {
     _RootNode.Remove(item);
 }