Exemplo n.º 1
0
        static public RectTree <T> CreateQuadtree(Rect bounds, int depth, int target_number_items, Operation <Rect, T> operation, IEnumerable <T> items)
        {
            RectTree <T> tree = CreateQuadtree(bounds, depth, target_number_items, operation);

            tree.AddRange(items);
            return(tree);
        }
Exemplo n.º 2
0
 static public void AddRange <T>(this RectTree <T> item, params T[] to_add)
 {
     item.AddRange((IEnumerable <T>)to_add);
 }