{"id":13724828,"url":"https://github.com/davidfig/intersects","last_synced_at":"2025-05-16T04:05:27.166Z","repository":{"id":55339062,"uuid":"112287382","full_name":"davidfig/intersects","owner":"davidfig","description":"a simple collection of 2d collision/intersects functions. Supports points, circles, ellipses, lines, axis-aligned boxes, and polygons","archived":false,"fork":false,"pushed_at":"2022-08-13T13:05:49.000Z","size":1474,"stargazers_count":554,"open_issues_count":3,"forks_count":49,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-09T14:57:00.760Z","etag":null,"topics":["2d","aabb","circles","collision","ellipses","geometry","intersects","lines","points","polygons"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidfig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-28T04:52:17.000Z","updated_at":"2025-04-26T12:10:42.000Z","dependencies_parsed_at":"2022-08-14T21:30:48.122Z","dependency_job_id":null,"html_url":"https://github.com/davidfig/intersects","commit_stats":null,"previous_names":["davidfig/simple-intersect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fintersects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fintersects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fintersects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fintersects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfig","download_url":"https://codeload.github.com/davidfig/intersects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","aabb","circles","collision","ellipses","geometry","intersects","lines","points","polygons"],"created_at":"2024-08-03T01:02:04.067Z","updated_at":"2025-05-16T04:05:22.158Z","avatar_url":"https://github.com/davidfig.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## intersects\n\nCollection of 2d collision/intersection checkers, supporting points, circles, circle circumferences (outline of circle), ellipses, lines, rectangles, and polygons (covex).\n\n## Live Example\n[https://davidfig.github.io/intersects/](https://davidfig.github.io/intersects/)\n\n## Installation\n\n```\nnpm i intersects\n```\nor\n```\nyarn add intersects\n```\n\n## Usage\n\n```js\nvar intersects = require('intersects');\n\nvar intersected = intersects.boxBox(x1, y1, w1, h1, x2, y2, w2, h2);\n```\n\nor\n\n```js\nvar circleBox = require('intersects/circle-box');\n\nvar intersected = circleBox(x, y, r, x1, y1, w1, h1);\n```\n\n## Alternative Usage\nIf you don't want to package the library using rollup, browserify, etc., you can also include the prepackaged library, which includes a global Intersects object:\n\n```html\n\u003cscript src=\"https://unpkg.com/intersects/umd/intersects.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var intersected = Intersects.polygonPoint(points, x, y);\n\u003c/script\u003e\n```\n\n## API\n\n* box (AABB / axis-aligned rectangle)\n    * [boxBox(x1, y1, w1, h1, x2, y2, w2, h2)](#boxboxx1-y1-w1-h1-x2-y2-w2-h2)\n    * [boxCircle(xb, yb, wb, hb, xc, yc, rc)](#boxcirclexb-yb-wb-hb-xc-yc-rc) |\n    * [boxEllipse(xb, yb, wb, hb, xe, ye, rex, rey)](#boxellipsexb-yb-wb-hb-xe-ye-rex-rey)\n    * [boxLine(xb, yb, wb, hb, x1, y1, x2, y2)](#boxlinexb-yb-wb-hb-x1-y1-x2-y2)\n    * [boxPoint(x1, y1, w1, h1, x2, y2)](#boxpointx1-y1-w1-h1-x2-y2)\n    * [boxPolygon(xb, yb, wb, hb, points)](#boxpolygonxb-yb-wb-hb-points)\n    * [boxCircleOutline(xb, yb, wb, hb, xc, yc, rc)](#boxCircleOutlinexb-yb-wb-hb-xc-yc-rc)\n* circle\n    * [circleBox(xc, yc, rc, xb, yb, wb, hb)](#circleboxxc-yc-rc-xb-yb-wb-hb)\n    * [circleCircle(x1, y1, r1, x2, y2, r2)](#circlecirclex1-y1-r1-x2-y2-r2)\n    * [circleEllipse(xc, yc, rc, xe, ye, rex, rey)](#circleellipsexc-yc-rc-xe-ye-rex-rey)\n    * [circleLine(xc, yc, rc, x1, y1, x2, y2)](#circlelinexc-yc-rc-x1-y1-x2-y2)\n    * [circlePoint(x1, y1, r1, x2, y2)](#circlepointx1-y1-r1-x2-y2)\n    * [circlePolygon(xc, yc, rc, points, tolerance)](#circlepolygonxc-yc-rc-points)\n    * (N/A) [circleCircleOutline(xc, yc, rc, xco, yco, rco)](#circleCircleOutlinexc-yc-rc-xco-yco-rco)\n* line\n    * [lineBox(x1, y1, x2, y2, xb, yb, wb, hb)](#lineboxx1-y1-x2-y2-xb-yb-wb-hb)\n    * [lineCircle(x1, y1, x2, y2, xc, yc, rc)](#linecirclex1-y1-x2-y2-xc-yc-rc)\n    * [lineEllipse(x1, y1, x2, y2, xe, ye, rex, rey)](#lineellipsex1-y1-x2-y2-xe-ye-rex-rey)\n    * [lineLine(x1, y1, x2, y2, x3, y3, x4, y4)](#linelinex1-y1-x2-y2-x3-y3-x4-y4-thickness1-thickness2)\n    * [linePolygon(x1, y1, x2, y2, points, tolerance)](#linepolygonx1-y1-x2-y2-points)\n    * [linePoint(x1, y1, x2, y2, xp, yp)](#linepointx1-y1-x2-y2-xp-yp)\n    * [lineCircleOutline(x1, y1, x2, y2, xc, yc, rc)](#lineCircleOutlinex1-y1-x2-y2-xc-yc-rc)\n* point\n    * [pointBox(x1, y1, xb, yb, wb, hb)](#pointboxx1-y1-xb-yb-wb-hb)\n    * [pointPolygon(x1, y1, points)](#pointpolygonx1-y1-points)\n    * [pointLine(xp, yp, x1, y1, x2, y2)](#pointlinexp-yp-x1-y1-x2-y2)\n    * [pointCircle(xp, yp, xc, yc, rc)](#pointcirclexp-yp-xc-yc-rc)\n    * [pointEllipse(xp, yp, xe, ye, rex, rey)](#pointellipsexp-yp-xe-ye-rex-rey)\n    * [pointCircleOutline(x2, y2, x1, y1, r1)](#pointCircleOutliner1-x2-y2-x1-y1)\n* polygon (convex)\n    * [polygonBox(points, x, y, w, h)](#polygonboxpoints-x-y-w-h)\n    * [polygonCircle(points, xc, yc, rc, tolerance)](#polygoncirclepoints-xc-yc-rc)\n    * [polygonEllipse(points, xe, ye, rex, rey)](#polygonellipsepoints-xe-ye-rex-rey)\n    * [polygonLine(points, x1, y1, x2, y2, tolerance)](#polygonlinepoints-x1-y1-x2-y2)\n    * [polygonPoint(points, x, y)](#polygonpointpoints-x-y)\n    * [polygonPolygon(points1, points2)](#polygonpolygonpoints1-points2)\n* ellipse\n    * [ellipseBox(xe, ye, rex, rey, x, y, w, h)](#ellipseboxxe-ye-rex-rey-x-y-w-h)\n    * [ellipseCircle(xe, ye, rex, rey, xc, yc, rc)](#ellipsecirclexe-ye-rex-rey-xc-yc-rc)\n    * [ellipseEllipse(x1, y1, r1x, r1y, x2, y2, r2x, r2y](#ellipseEllipse-x1-y1-r1x-r1y-x2-y2-r2x-r2y)\n    * [ellipseLine(xe, ye, rex, rey, x1, y1, x2, y2)](#ellipselinexe-ye-rex-rey-x1-y1-x2-y2)\n    * [ellipsePoint(xe, ye, rex, rey, x, y)](#ellipsepoint-xe-ye-rex-rey-x-y)\n    * [ellipsePolygon(xe, ye, rex, rey, points2)](#ellipsepolygonxe-ye-rex-rey-points2)\n* circleOutline (only the circumference of circle)\n    * [circleOutlineBox(xc, yc, rc, xb, yb, wb, hb)](#circleOutlineBoxxc-yc-rc-xb-yb-wb-hb)\n    * (N/A) [circleOutlineCircle(xco, yco, rco, xc, yc, rc)](#circleOutlineCirclex1-y1-r1-x2-y2-r2)\n    * (N/A) [circleOutlineEllipse(xc, yc, rc, xe, ye, rex, rey)](#circleOutlineEllipsexc-yc-rc-xe-ye-rex-rey)\n    * [circleOutlineLine(xc, yc, rc, x1, y1, x2, y2)](#circleOutlineLinexc-yc-rc-x1-y1-x2-y2)\n    * [circleOutlinePoint(x1, y1, r1, x2, y2)](#circleOutlinePointx1-y1-r1-x2-y2)\n    * (N/A) [circleOutlinePolygon(xc, yc, rc, points)](#circleOutlinePolygonxc-yc-rc-points)\n\n---\n\n### `boxBox(x1, y1, w1, h1, x2, y2, w2, h2)`\n\nBox-box collision.\n\nParam | Meaning\n---|---\n`x1` | top-left corner of first box\n`y1` | top-left corner of first box\n`w1` | width of first box\n`h1` | height of first box\n`x2` | top-left corner of second box\n`y2` | top-left corner of second box\n`w2` | width of second box\n`h2` | height of second box\n\n---\n\n### `boxCircle(xb, yb, wb, hb, xc, yc, rc)`\n\nBox-circle collision.\n\nParam | Meaning\n---|---\n`xb` | top-left corner of box\n`yb` | top-left corner of box\n`wb` | width of box\n`hb` | height of box\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `boxEllipse(xb, yb, wb, hb, xe, ye, rex, rey)`\n\nBox-ellipse collision.\n\nParam | Meaning\n---|---\n`xb` | top-left corner of box\n`yb` | top-left corner of box\n`wb` | width of box\n`hb` | height of box\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `boxLine(xb, yb, wb, hb, x1, y1, x2, y2)`\n\nBox-line collision.\n\nParam | Meaning\n---|---\n`xb` | top-left corner of box\n`yb` | top-left corner of box\n`wb` | width of box\n`hb` | height of box\n`x1` | first point of line\n`y1` | first point of line\n`x2` | second point of line\n`y2` | second point of line\n\n---\n\n### `boxPoint(x1, y1, w1, h1, x2, y2)`\n\nBox-point collision.\n\nParam | Meaning\n---|---\n`x1` | top-left corner of box\n`y1` | top-left corner of box\n`w1` | width of box\n`h1` | height of box\n`x2` | point x\n`y2` | point y\n\n---\n\n### `boxPolygon(xb, yb, wb, hb, points)`\n\nBox-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`xb` | top-left corner of box\n`yb` | top-left corner of box\n`wb` | width of box\n`hb` | height of box\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n\n---\n\n### `boxCircleOutline(xb, yb, wb, hb, xc, yc, rc)`\n\nBox (axis-oriented rectangle)-Circle outline (circumference of circle) collision.\n\nParam | Meaning\n---|---\n`xb` | top-left corner of rectangle\n`yb` | top-left corner of rectangle\n`wb` | width of rectangle\n`hb` | height of rectangle\n`xc` | center of circle outline\n`yc` | center of circle outline\n`rc` | radius of circle outline\n\n---\n\n### `circleBox(xc, yc, rc, xb, yb, wb, hb)`\n\nCircle-box (axis-oriented rectangle) collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n`xb` | top-left corner of rectangle\n`yb` | top-left corner of rectangle\n`wb` | width of rectangle\n`hb` | height of rectangle\n\n---\n\n### `circleCircle(x1, y1, r1, x2, y2, r2)`\n\nCircle-circle collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle 1\n`y1` | center of circle 1\n`r1` | radius of circle 1\n`x2` | center of circle 2\n`y2` | center of circle 2\n`r2` | radius of circle 2\n\n---\n\n### `circleEllipse(xc, yc, rc, xe, ye, rex, rey)`\n\nCircle-ellipse collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle\n`y1` | center of circle\n`r1` | radius of circle\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `circleLine(xc, yc, rc, x1, y1, x2, y2)`\n\nCircle-line collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n`x1` | first point of line\n`y1` | first point of line\n`x2` | second point of line\n`y2` | second point of line\n\n---\n\n### `circlePoint(x1, y1, r1, x2, y2)`\n\nCircle-point collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle\n`y1` | center of circle\n`r1` | radius of circle\n`x2` | point x\n`y2` | point y\n\n---\n\n### `circlePolygon(xc, yc, rc, points)`\n\nCircle-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n\n---\n\n### `circleCircleOutline(xc, yc, rc, xco, yco, rco)`\n\n(Not available yet.) Circle-Circle outline (circumference of circle) collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n`xco` | center of circle outline\n`yco` | center of circle outline\n`rco` | radius of circle outline\n\n---\n### `lineBox(x1, y1, x2, y2, xb, yb, wb, hb)`\n\nLine-box collision.\n\nParam | Meaning\n---|---\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n`xb` | top-left of box\n`yb` | top-left of box\n`wb` | width of box\n`hb` | height of box\n\n---\n\n### `lineCircle(x1, y1, x2, y2, xc, yc, rc)`\n\nLine-circle collision.\n\nParam | Meaning\n---|---\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `lineEllipse(x1, y1, x2, y2, xe, ye, rex, rey)`\n\nLine-ellipse collision.\n\nParam | Meaning\n---|---\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `lineLine(x1, y1, x2, y2, x3, y3, x4, y4, thickness1, thickness2)`\n\nLine-line collision.\n\nParam | Meaning\n---|---\n`x1` | first point in line 1\n`y1` | first point in line 1\n`x2` | second point in line 1\n`y2` | second point in line 1\n`x3` | first point in line 2\n`y3` | first point in line 2\n`x4` | second point in line 2\n`y4` | second point in line 2\n`thickness1` | of line 1 (the line is centered in its thickness--see demo)\n`thickness2` | of line 2 (the line is centered in its thickness--see demo)\n\n---\n\n### `linePolygon(x1, y1, x2, y2, points, tolerance)`\n\nLine-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`tolerance` | maximum distance of point to polygon's edges that triggers collision (see pointLine)\n---\n\n### `linePoint(x1, y1, x2, y2, xp, yp)`\n\nLine-point collision.\n\nParam | Meaning\n---|---\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n`xp` | point x\n`yp` | point y\n\n---\n\n### `lineCircleOutline(x1, y1, x2, y2, xc, yc, rc)`\n\nLine-Circle outline (circumference of circle) collision.\n\nParam | Meaning\n---|---\n`x1` | first point of line\n`y1` | first point of line\n`x2` | second point of line\n`y2` | second point of line\n`xc` | center of circle outline\n`yc` | center of circle outline\n`rc` | radius of circle outline\n\n---\n\n### `pointBox(x1, y1, xb, yb, wb, hb)`\n\nPoint-box collision.\n\nParam | Meaning\n---|---\n`x1` | point x\n`y1` | point y\n`xb` | top-left corner of box\n`yb` | top-left corner of box\n`wb` | width of box\n`hb` | height of box\n\n---\n\n### `pointPolygon(x1, y1, points)`\n\nPoint-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`x1` | point x\n`y1` | point y\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n\n---\n\n### `pointLine(xp, yp, x1, y1, x2, y2)`\n\npoint-line collision.\n\nParam | Meaning\n---|---\n`xp` | point x\n`yp` | point y\n`x1` | point 1 of line\n`y1` | point 1 of line\n`x2` | point 2 of line\n`y2` | point 2 of line\n\n---\n\n### `pointCircle(xp, yp, xc, yc, rc)`\n\npoint-circle collision.\n\nParam | Meaning\n---|---\n`xp` | point x\n`yp` | point y\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `pointEllipse(xp, yp, xe, ye, rex, rey)`\n\npoint-ellipse collision.\n\nParam | Meaning\n---|---\n`xp` | point x\n`yp` | point y\n`xe` | center of circle\n`ye` | center of circle\n`rex` | x-radius of circle\n`rey` | y-radius of circle\n\n---\n\n### `pointCircleOutline(x2, y2, x1, y1, r1)`\n\nPoint-Circle outline (circumference of circle) collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle outline\n`y1` | center of circle outline\n`r1` | radius of circle outline\n`x2` | point x\n`y2` | point y\n\n---\n\n### `polygonBox(points, x, y, w, h)`\n\nPolygon (convex)-box collision.\n\nParam | Meaning\n---|---\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`x` | of box\n`y` | of box\n`w` | of box\n`h` | of box\n\n---\n\n### `polygonCircle(points, xc, yc, rc)`\n\nPolygon (convex)-circle collision.\n\nParam | Meaning\n---|---\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `polygonEllipse(points, xe, ye, rex, rey)`\n\nPolygon (convex)-ellipse collision.\n\nParam | Meaning\n---|---\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `polygonLine(points, x1, y1, x2, y2, tolerance)`\n\nPolygon (convex)-line collisions.\n\nParam | Meaning\n---|---\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`x1` | first point in line\n`y1` | first point in line\n`x2` | second point in line\n`y2` | second point in line\n`tolerance` | maximum distance of point to polygon's edges that triggers collision (see pointLine)\n\n---\n\n### `polygonPoint(points, x, y)`\n\nPolygon (convex)-point collision.\n\nParam | Meaning\n---|---\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n`x` | of point\n`y` | of point\n\n---\n\n### `polygonPolygon(points1, points2)`\n\nPolygon (convex)-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`points1` | `[x1, y1, x2, y2, ... xn, yn]` of first polygon\n`points2` | `[x1, y1, x2, y2, ... xn, yn]` of second polygon\n\n---\n\n### `ellipseBox(xe, ye, rex, rey, x, y, w, h)`\n\nEllipse-box collision.\n\nParam | Meaning\n---|---\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n`x` | of box\n`y` | of box\n`w` | of box\n`h` | of box\n\n---\n\n### `ellipseCircle(xe, ye, rex, rey, xc, yc, rc)`\n\nEllipse-circle collision.\n\nParam | Meaning\n---|---\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `ellipseEllipse(x1, y1, r1x, r1y, x2, y2, r2x, r2y)`\n\nEllipse-ellipse collision.\n\nParam | Meaning\n---|---\n`x1` | center of ellipse 1\n`y1` | center of ellipse 1\n`r1x` | x-radius of ellipse 1\n`r1y` | y-radius of ellipse 1\n`x2` | center of ellipse 2\n`y2` | center of ellipse 2\n`r2x` | x-radius of ellipse 2\n`r2y` | y-radius of ellipse 2\n\n---\n\n### `ellipseLine(xe, ye, rex, rey, x1, y1, x2, y2)`\n\nEllipse-line collisions.\n\nParam | Meaning\n---|---\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n`x1` | first point in line\n`y1` | first point in line\n`x2` | second point in line\n`y2` | second point in line\n\n---\n\n### `ellipsePoint(xe, ye, rex, rey, x, y)`\n\nEllipse-point collision.\n\nParam | Meaning\n---|---\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n`x` | of point\n`y` | of point\n\n---\n\n### `ellipsePolygon(xe, ye, rex, rey, points2)`\n\nEllipse-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `circleOutlineBox(xc, yc, rc, xb, yb, wb, hb)`\n\nCircle outline (circumference of circle)-box (axis-oriented rectangle) collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle outline\n`yc` | center of circle outline\n`rc` | radius of circle outline\n`xb` | top-left corner of rectangle\n`yb` | top-left corner of rectangle\n`wb` | width of rectangle\n`hb` | height of rectangle\n\n---\n\n### `circleOutlineCircle(xco, yco, rco, xc, yc, rc)`\n\nCircle outline (circumference of circle)-circle collision.\n\nParam | Meaning\n---|---\n`xco` | center of circle outline\n`yco` | center of circle outline\n`rco` | radius of circle outline\n`xc` | center of circle\n`yc` | center of circle\n`rc` | radius of circle\n\n---\n\n### `circleOutlineEllipse(xc, yc, rc, xe, ye, rex, rey)`\n\n(Not available yet.) Circle outline (circumference of circle)-ellipse collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle outline\n`y1` | center of circle outline\n`r1` | radius of circle outline\n`xe` | center of ellipse\n`ye` | center of ellipse\n`rex` | x-radius of ellipse\n`rey` | y-radius of ellipse\n\n---\n\n### `circleOutlineLine(xc, yc, rc, x1, y1, x2, y2)`\n\nCircle outline (circumference of circle)-line collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle outline\n`yc` | center of circle outline\n`rc` | radius of circle outline\n`x1` | first point of line\n`y1` | first point of line\n`x2` | second point of line\n`y2` | second point of line\n\n---\n\n### `circleOutlinePoint(x1, y1, r1, x2, y2)`\n\nCircle outline (circumference of circle)-point collision.\n\nParam | Meaning\n---|---\n`x1` | center of circle outline\n`y1` | center of circle outline\n`r1` | radius of circle outline\n`x2` | point x\n`y2` | point y\n\n---\n\n### `circleOutlinePolygon(xc, yc, rc, points)`\n\n(Not available yet.) Circle outline (circumference of circle)-polygon (convex) collision.\n\nParam | Meaning\n---|---\n`xc` | center of circle outline\n`yc` | center of circle outline\n`rc` | radius of circle outline\n`points` | `[x1, y1, x2, y2, ... xn, yn]` of polygon\n\n## License\n\nMIT License\n\n(c) 2019 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fintersects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfig%2Fintersects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fintersects/lists"}