pygame-geometry
pygame-geometry copied to clipboard
Polygon `collideswith()`
Closes #173.
This is just a first implementation that supports:
- Lines
- Circles
- Vec2(s) / tuples / lists / sequences of len 2
It's a bit different from the other collideswith since it supports a only_edges param. it only works with shapes and points.
This PR also fixes an issue with polygon collideline tests, which effectively didn't test the function but its line counterpart collidepolygon.