检测指定点是否在多边形内部,如果在则为true 否则为false
pointer = [200, 10]
polygon = [[10,20],[150, 200],[100,20],[400, 30]]
pointPolygonTest (pointer, polygon)
pointer = [200, 10]
polygon = [[10,20],[150, 200],[100,20],[400, 30]]
pointPolygonTest (pointer, polygon)
npm i @falseluffy/point-polygon-test
3
0.0.1
ISC
3.15 kB
3