import{getDistance as t,convertDistance as r}from"geolib";import o from"@turf/circle";import{toMapboxCoords as n}from"../../utils/toMapboxCoords.js";var i=5,u=function(o,n){var i=t(o,n);return r(i,"mi")},e=function(t,r){var i=n(t);return o(i,r,{units:"miles",steps:64})},l=function(t,r){var o=n(r),i=t.project(o),e={x:i.x+5,y:i.y},l=t.unproject([e.x,e.y]);return u({latitude:r.latitude,longitude:r.longitude},{latitude:l.lat,longitude:l.lng})},a=function(t,r,o){return Math.abs(t-r)<=o},c=function(t,r,o){return t<r-o};export{i as EDGE_TOLERANCE_PIXELS,e as createCircleGeoJSON,u as getDistanceInMiles,l as getPixelToleranceInMiles,c as isInsideCircle,a as isNearCircleEdge};
//# sourceMappingURL=radius-geometry.js.map
