1
0
Fork
You've already forked circles-intersect
0
Check if two circles intersect.
  • JavaScript 100%
Evangelos Pragalakis 45427e2643 update package.json
2019年10月17日 21:31:00 +03:00
index.js update index.js 2019年10月17日 21:29:50 +03:00
LICENSE Add LICENSE 2019年01月15日 11:41:04 +00:00
package.json update package.json 2019年10月17日 21:31:00 +03:00
README.md update README.md 2019年01月15日 13:40:45 +02:00

circles-intersect

Checks if two circles intersect.

Usage

NPM

circlesIntersect(x1, y1, r1, x2, y2, r2)

where x1, y1 ,x2 and y2 the center points of each circle and r1, r2 their radius

let circlesIntersect = require('circles-intersect')
let intersects = circlesIntersect(15,20,3,10,14,5)
console.log(intersects) // true 

License

MIT