UNPKG

intersects

Version:

a simple collection of 2d collision/intersects functions, supporting points, circles, circle outlines (circumference), lines, axis-aligned boxes, and polygons (convex)

10 lines (8 loc) 208 B
var circlePoint = require('./circle-point') module.exports = function circleOutlineCircle(xc, yc, rc, xco, yco, rco, thickness) { if (circlePoint(xc, yc, rc, xco, yco)) { return true } }