summaryrefslogtreecommitdiff
path: root/src/test.c
AgeCommit message (Collapse)Author
2018-12-14libix2: support nested area searchesVito Caputo
See 6ea78c53 in libix3 for more info, this replicates the change to keep them in something resembling API parity.
2018-11-27libix2: disambiguate ix2_search_status_tVito Caputo
Previously one could say stop/ignore/continue. There was no way to say stop and ignore, or stop but don't ignore. Now there are basically two classes of returns, stop and continue, and each of those have ignore/don't ignore sub-statuses. The naming is changed to STOP vs. MORE and HIT vs. MISS for brevity: typedef enum ix2_search_status_t { IX2_SEARCH_STOP_MISS, IX2_SEARCH_STOP_HIT, IX2_SEARCH_MORE_MISS, IX2_SEARCH_MORE_HIT } ix2_search_status_t;
2018-11-27libpad: add ix2_reset()Vito Caputo
This basically amounts to adding a pad_reset() wrapper. Also incorporated resets into the test, while fixing a stupid bug there.
2018-11-27test: s/aabb_t/bb2f_t/gVito Caputo
mechanical change syncing the test code with the aabb type rename
2018-05-21libix2: introduce origin for anchoring positionVito Caputo
also use v2f_t everywhere for positions instead of the occasional float x, float y.
2018-05-18test: update test.c to conform to latest api stateVito Caputo
2018-05-14*: initial commitVito Caputo
libix2 implements a simple spatial index of objects described by 2D axis-aligned bounding boxes (AABB). It does so by internally utilizing a traditional quadtree data structure. At this time only simple AABB and point search queries are supported, with a simple per-match callback interface. It may make sense to in the future add support for indexing other 2D shapes than AABBs, like circles. It would also make senes to add more interesting search queries like radial ranges and such. The intended use is for broad-phase collision detection in 2D games.
© All Rights Reserved