point-in-polygon-hao icon indicating copy to clipboard operation
point-in-polygon-hao copied to clipboard

A point in polygon library based on the paper "Optimal Reliable Point-in-Polygon Test and Differential Coding Boolean Operations on Polygons" by Hao

Results 3 point-in-polygon-hao issues
Sort by recently updated
recently updated
newest added

const coordinate = [ [51.65906944711844, 32.644344469605144], [51.643474062027934, 32.64597280574026], [51.6602114368668, 32.658994206590506], [51.64382208072604, 32.65965256535195], [51.65906944711844, 32.644344469605144], ]; const point = [51.6476999685446, 32.65383784687809] const hao = inside(point, coordinate) console.log(`hao gives: ${hao}`) for this...

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...

Increase performance ~30% in the first benchmark but decrease it by less than 10% in the second. By reordering and merging the conditions. Also reduce the minified file size by...