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

throw error code use && #18

Open
comxtohr opened this issue Jun 18, 2023 · 1 comment
Open

throw error code use && #18

comxtohr opened this issue Jun 18, 2023 · 1 comment

Comments

@comxtohr
Copy link

throw error code here uses &&
if (currentP[0] !== contour[contourLen][0] && currentP[1] !== contour[contourLen][1])
so the code throw error only if both lat not equal and lon not equal?

here is code reference:
https://github.com/rowanwins/point-in-polygon-hao/blob/9cee0e8736917d8a8206ece35267fcd4206b9a39/src/index.js#LL23C9-L26C10

@rowanwins
Copy link
Owner

Yes that check could be improved

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

No branches or pull requests

2 participants