Awesome
Bumpy - 2d geometry intersections library for Nim.
atlas use bumpy
nimble 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 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |