Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added polygon to Circle and Line collideswith #212

Merged
merged 4 commits into from
Jul 10, 2023

Conversation

itzpr3d4t0r
Copy link
Member

Now both Circle and Line's collideswith method will accept polygons. This PR also corrects line collidepolygon tests and adds new ones to accommodate for the changes. It comes with a caveat that is the collideswith method will only work as if the "only_edges" param were set to False. This is because for now collideswith is intended to be a function with a single argument so i had to enforce one behaviour.

@itzpr3d4t0r itzpr3d4t0r added the type:partial_rewrite Partially rewrites an existing feature label Jul 6, 2023
@itzpr3d4t0r itzpr3d4t0r merged commit 9f88ff1 into main Jul 10, 2023
33 checks passed
@itzpr3d4t0r itzpr3d4t0r deleted the update_linepoly_collideswith branch July 10, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:partial_rewrite Partially rewrites an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant