intersects
Version:
a simple collection of 2d collision/intersects functions, supporting points, circles, circle outlines (circumference), lines, axis-aligned boxes, and polygons (convex)
15 lines (14 loc) • 460 B
JavaScript
var circleOutlinePoint = require('./circleOutline-point')
/**
* point-circleOutline collision
* @param {number} x of point
* @param {number} y of point
* @param {number} xc center of circle
* @param {number} yc center of circle
* @param {radius} rc radius of circle
* @param {number} thickness of circle outline
*/
module.exports = function pointCircleOutline(x, y, xc, yc, rc, thickness)
{
return circleOutlinePoint(x, y, xc, yc, rc, thickness)
}