throw error code use `&&`
Opened this issue · 1 comments
comxtohr commented
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 commented
Yes that check could be improved