pygame-geometry icon indicating copy to clipboard operation
pygame-geometry copied to clipboard

Polygon `collideswith()`

Open itzpr3d4t0r opened this issue 2 years ago • 0 comments

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.

itzpr3d4t0r avatar Jul 23 '23 13:07 itzpr3d4t0r