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

Fix Triangle.contains_point impl to not care about vertex winding order #456

Merged
merged 3 commits into from
Feb 23, 2019

Conversation

hardiesoft
Copy link
Contributor

It seems like vertex winding order of triangles should not matter when checking to see if a point is inside a triangle - especially in 2D. If it was intentional behaviour (for cases when you want to ignore the hit-test when the triangle is not front-facing?) then please document the intended usage.

Thanks!
Jon

@nical
Copy link
Owner

nical commented Feb 23, 2019

It was indeed a bug. Thanks a lot!

@nical nical merged commit caab2c9 into nical:master Feb 23, 2019
@nical nical mentioned this pull request Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants