Пример #1
0
 public void Insert(IAgent item)
 {
     if (m_root.Bounds.Contains(item.Position))
     {
         m_root.Insert(item);
     }
     else
     {
         outOfBoundList.Add(item);
         item.Node = null;
     }
 }
Пример #2
0
 /// <summary>
 /// Insert the feature into the QuadTree
 /// </summary>
 /// <param name="item"></param>
 public void Insert(T item)
 {
     m_root.Insert(item);
 }
Пример #3
0
 /// <summary>
 /// Insert the feature into the QuadTree
 /// </summary>
 /// <param name="item"></param>
 public QuadTree Insert(Range item)
 {
     m_root.Insert(item);
     return(this);
 }