예제 #1
0
 public void RangeScanQuads(WorldPosition position, double range, List <Agent> buffer)
 {
     if (new Quad(position, range).Intersect(Quad))
     {
         buffer.AddRange(Agents);
         TopRight?.RangeScanQuads(position, range, buffer);
         TopLeft?.RangeScanQuads(position, range, buffer);
         BottomRight?.RangeScanQuads(position, range, buffer);
         BottomLeft?.RangeScanQuads(position, range, buffer);
     }
 }