Example #1
0
        public List <IAgent> Query(Rectangle area)
        {
//            return m_root.Query(area);
            List <IAgent> results = m_root.Query(area);

            results.AddRange(outOfBoundList);
            return(results);
        }
Example #2
0
 /// <summary>
 /// Query the QuadTree, returning the items that are in the given area
 /// </summary>
 /// <param name="area"></param>
 /// <returns></returns>
 public List <Range> Query(Range area)
 {
     return(m_root.Query(area));
 }
Example #3
0
 /// <summary>
 /// Query the QuadTree, returning the items that are in the given area
 /// </summary>
 /// <param name="area"></param>
 /// <returns></returns>
 public List <T> Query(RectangleF area)
 {
     return(m_root.Query(area));
 }
Example #4
0
 /// <summary>
 /// Query the QuadTree, returning the items that are in the given area
 /// </summary>
 /// <param name="area"></param>
 /// <returns></returns>
 public List <GridRange> Query(GridRange area)
 {
     return(m_root.Query(area));
 }