예제 #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);
        }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }