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

Dev/nich/point.in polygon bug #419

Merged

Conversation

NishantChandrashekhar
Copy link
Contributor

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🔖 Release
  • 🚩 Other

Description

Here's a modified approach to check if the point is inside a given polygon. In this PR, I have implemented the algorithm using the winding number concept as described here. The corner cases that one has to take care of are the polygons with horizontal edges. Appropriate test cases have been added (in addition to the existing tests) to test the corner cases too.

Related Tickets & Documents

This PR Fixes #411

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📓 docs
  • 🙅 no documentation needed

@chuongmep
Copy link
Contributor

Hi @sonomirco @d3ssy , can accept this pull request , I have some important issue relate to this with your project.
Thanks @NishantChandrashekhar

@d3ssy d3ssy mentioned this pull request Aug 7, 2023
12 tasks
@d3ssy d3ssy merged commit 8eb033d into GSharker:master Aug 7, 2023
2 checks passed
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.

Point.InPolygon is not correct
3 participants