mirror of
https://github.com/treeform/bumpy
synced 2026-01-02 17:34:38 +00:00
No description
| .github/workflows | ||
| examples | ||
| src | ||
| tests | ||
| .gitignore | ||
| bumpy.nimble | ||
| LICENSE | ||
| README.md | ||
Bumpy - 2d geometry intersections library for Nim.
atlas use bumpynimble install bumpy
About
Based on the book http://www.jeffreythompson.org/collision-detection/table_of_contents.php
Mostly used for vector 2d intersections checking for Pixie: https://github.com/treeform/pixie
Supported intersections:
| Shape | Point | Circle | Rectangle | Segment | Polygon | Line | Wedge |
|---|---|---|---|---|---|---|---|
| Point | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Circle | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Rectangle | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Segment | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Polygon | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Line | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Wedge | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |