Skip to content

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

Merged
nical merged 3 commits into
nical:masterfrom
hardiesoft:master
Feb 23, 2019
Merged

Fix Triangle.contains_point impl to not care about vertex winding order#456
nical merged 3 commits into
nical:masterfrom
hardiesoft:master

Conversation

@hardiesoft

Copy link
Copy Markdown
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

nical commented Feb 23, 2019

Copy link
Copy Markdown
Owner

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