npm.io
1.0.1 • Published 7 years ago

@garvey/poi-in-zone

Licence
ISC
Version
1.0.1
Deps
0
Size
155 kB
Vulns
0
Weekly
0

garvey-shield

Downloads Version License

Determine if the point is within the area quickly. Judging whether the point is inside the polygon we have many good methods such as ray method and corner method, but they are all slower.This method only provides a light calculation idea

try it

run

npm i @garvey/poi-in-zone

and write in your file:

const poiInZone = require('@garvey/poi-in-zone')
// or
import poiInZone from '@garvey/poi-in-zone'
// or
...as you want

Keywords