Quadtree
Efficient implementation of a QuadTree data structure for spatial querying (e.g. collision detection)
Install / Use
/learn @Antymon/QuadtreeREADME
QuadTree implementation in C
This code was originally authored by a Stackoverflow user dragon-energy (referred to as the author) and posted under following page:
https://stackoverflow.com/questions/41946007/efficient-and-well-explained-implementation-of-a-quadtree-for-2d-collision-det
This post also features an extensive explanation of a QuadTree data structure and selected alternatives, as well as describes the approach taken in this very implementation.
Minor modifications include:
- organization of the code into files,
- float-to-int type change,
- a header addition,
- a bug fix as mentioned by myself in the very same question page linked above.
License
As for the license, I follow whatever terms original source implies. As the author has kindly noted:
"Oh and feel free to use this code I post however you want, even for commercial projects. I would really love it if people let me know if they find it useful, but do as you wish."
And generally all Stackoverflow-posted code is by default licensed with CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
