2d hash-based spatial partitioning wrapped in a single header library. Can be used for broad-phase collision detection, object-selection, ray-casting etc..
Just drop SpatialHash.h
anywhere you want into your project and compile as part of your project. No fancy compile options or other setups needed.
You can look at the tests and benchmarks by running make
in the testing
directory and than running the two resulting binaries.
TODO