Esempio n. 1
0
    public void clear()
    {
        // is it a leaf?
        if (level == QuadTreeTouchEvent.DEEP_LEVEL_THRESHOLD)
        {
            leafContent.clear();
            return;
        }

        // while not being a leaf then continue cleaning quad nodes
        if (topLeft != null)
        {
            topLeft.clear();
        }
        if (topRight != null)
        {
            topRight.clear();
        }
        if (botRight != null)
        {
            botRight.clear();
        }
        if (botLeft != null)
        {
            botLeft.clear();
        }
    }
Esempio n. 2
0
 public void clear()
 {
     root.clear();
 }