Jump to content

QuadTree, usage of reset() method versus clear()


yahiko
 Share

Recommended Posts

I am wondering if I could use the reset() method of a QuadTree object the same way as the clear() method.

After checking the source code, it seems reset() would be faster since there is no reccursion, only setting arrays length to 0.

But, I am still unsure it has no drawback compared to the standard clear() method.

Anyone has some insight about it?

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...