public List <IAgent> Query(Rectangle area) { // return m_root.Query(area); List <IAgent> results = m_root.Query(area); results.AddRange(outOfBoundList); return(results); }
/// <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)); }
/// <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)); }
/// <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)); }