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ment-functions@0.1.4/Shape-Containment-Functions.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/db82-shape-containment-functions@0.1.4/Shape-Containment-Functions.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nexports.__esModule = true;\nvar si = require(\"db82-shape-intersection-detectors\");\nvar pc = require(\"db82-shape-point-containment-functions\");\nfunction polygonIsInsideBoundingbox(p, b) {\n    return p.every(function (x) { return pc.boundingboxContainsPoint(b, x); });\n}\nexports.polygonIsInsideBoundingbox = polygonIsInsideBoundingbox;\nfunction polygonIsInsideCircle(p, b) {\n    return p.every(function (x) { return pc.circleContainsPoint(b, x); });\n}\nexports.polygonIsInsideCircle = polygonIsInsideCircle;\nfunction circleIsInsideBoundingbox(c, b) {\n    return pc.boundingboxContainsPoint(b, c.center) && !si.circleIntersectsBoundingbox(c, b);\n}\nexports.circleIsInsideBoundingbox = circleIsInsideBoundingbox;\nfunction boundingboxIsInsideCircle(b, c) {\n    var p = [b[0], b[1], b[0] + b[2], b[1] + b[3]];\n    return p.every(function (x) { return pc.circleContainsPoint(c, x); });\n}\nexports.boundingboxIsInsideCircle = boundingboxIsInsideCircle;\nfunction boundingboxIsInsideBoundingbox(a, b) {\n    return b[0] < a[0] && (a[0] + a[2] < b[0] + b[2]) && (b[1] < a[1]) && (a[1] + a[3] < b[1] + b[3]);\n}\nexports.boundingboxIsInsideBoundingbox = boundingboxIsInsideBoundingbox;\nfunction circleIsInsideCircle(c1, c2) {\n    return pc.circleContainsPoint(c2, c1.center) && !si.circleIntersectsCircle(c1, c2);\n}\nexports.circleIsInsideCircle = circleIsInsideCircle;\nfunction circleIsInsidePolygon(c, p) {\n    return pc.polygonContainsPoint(p, c.center) && !si.circleIntersectsPolygon(c, p);\n}\nexports.circleIsInsidePolygon = circleIsInsidePolygon;\n"]}