Files
turftracker/frontend/node_modules/point-in-polygon/index.js
2026-04-09 13:19:47 -05:00

13 lines
438 B
JavaScript

var pointInPolygonFlat = require('./flat.js')
var pointInPolygonNested = require('./nested.js')
module.exports = function pointInPolygon (point, vs, start, end) {
if (vs.length > 0 && Array.isArray(vs[0])) {
return pointInPolygonNested(point, vs, start, end);
} else {
return pointInPolygonFlat(point, vs, start, end);
}
}
module.exports.nested = pointInPolygonNested
module.exports.flat = pointInPolygonFlat