manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.21k stars 341 forks source link

Increase polygon area when using isPointInPolygon #305

Open raisen opened 4 months ago

raisen commented 4 months ago

Is there a way to increase a polygon area when using isPointInPolygon? For example:

// check if point is within the polygon defined by coords. polygon area is extended by 500 meters
isPointInPolygon(point, coords, 500);