point-in-geometry
v0.0.4
Published
> Easy way to test points in circles and polygons, perfect for maps.
Readme
Point In Geometry
Easy way to test points in circles and polygons, perfect for maps
Installation
npm install point-in-geometry --saveUsage example
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]]);
Contributing
- Fork it (https://github.com/luizfer/point-in-geometry/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
