bumpy
bumpy copied to clipboard
2d collision library for Nim.
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 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |