> Easy way to test points in circles and polygons, perfect for maps.
npm install point-in-geometry``sh`
npm install point-in-geometry --save
`
import { PointInCircle } from 'point-in-geometry';
PointInCircle([0, 1], [1, 1], 1);
OR
import { PointInPolygon } from 'point-in-geometry';
PointInPolygon([0, 1], [[0, 2], [2, 1], [1, 3], [3, 1]]);
`
1. Fork it (
2. Create your feature branch (git checkout -b feature/fooBar)git commit -am 'Add some fooBar'
3. Commit your changes ()git push origin feature/fooBar`)
4. Push to the branch (
5. Create a new Pull Request
[npm-url]: https://www.npmjs.com/package/point-in-geometry