예제 #1
0
 /// <summary>
 /// Reindexes item.
 /// </summary>
 public void ReIndex(T item, Rect oldBounds)
 {
     if (root.GetContainingQuadrant(item.Bounds) != root.GetContainingQuadrant(oldBounds))
     {
         root.Remove(item, oldBounds);
         root.Add(item);
     }
 }