Nez.Portable/Physics/QuadTree/QuadTreeNode.cs
/// <summary>
/// Deletes an item from this QuadTree. If the object is removed causes this Quad to have no objects in its children, it's children will be removed as well.
/// </summary>
/// <param name="item">The item to remove.</param>
/// <param name="clean">Whether or not to clean the tree</param>
Deletes an item from this QuadTree. If the object is removed causes this Quad to have no objects in its children, it's children will be removed as well.
Deletes an item from this QuadTree . If the object is removed causes this Quad to have no objects in its children it ' s children will be removed as well .
internal void delete(QuadTreeObject<T> item, bool clean)
        {
            if (item.owner != null)
            {
                if (item.owner == this)
                {
                    remove(item);
                    if (clean)
                        cleanUpwards();
                }
                else
                {
                    item.owner.delete(item, clean);
                }
            }
        }
internal void delete ( QuadTreeObject < T > item , bool clean ) { if ( item . owner != null ) { if ( item . owner == this ) { remove ( item ) ; if ( clean ) cleanUpwards ( ) ; } else { item . owner . delete ( item , clean ) ; } } }
Deletes an item from this QuadTree.
Deletes an item from this QuadTree .
item
QuadTreeObject<T>
The item to remove.
The item to remove .
clean
bool
Whether or not to clean the tree
Whether or not to clean the tree