circles-intersect

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i circles-intersect

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • evangl