Esempio n. 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;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Insert the feature into the QuadTree
 /// </summary>
 /// <param name="item"></param>
 public void Insert(T item)
 {
     m_root.Insert(item);
 }
Esempio n. 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);
 }