Nez.Portable/Physics/QuadTree/QuadTreeNode.cs
/// <summary>
/// Get the total for all objects in this QuadTree, including children.
/// </summary>
/// <returns>The number of objects contained within this QuadTree and its children.</returns>
Get the total for all objects in this QuadTree, including children.
Get the total for all objects in this QuadTree including children .
int objectCount()
        {
            var count = 0;
            if (_objects != null)
            {
                count += _objects.Count;
            }
            if (_childTL != null)
            {
                count += _childTL.objectCount();
                count += _childTR.objectCount();
                count += _childBL.objectCount();
                count += _childBR.objectCount();
            }
            return count;
        }
int objectCount ( ) { var count = 0 ; if ( _objects != null ) { count += _objects . Count ; } if ( _childTL != null ) { count += _childTL . objectCount ( ) ; count += _childTR . objectCount ( ) ; count += _childBL . objectCount ( ) ; count += _childBR . objectCount ( ) ; } return count ; }
Get the total for all objects in this QuadTree, including children.
Get the total for all objects in this QuadTree including children .
// Add the objects at this level // Add the objects that are contained in the children
The number of objects contained within this QuadTree and its children.
The number of objects contained within this QuadTree and its children .