JSPM

circles-intersect

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q13855F
  • License MIT

Checks if two circles intersect.

Package Exports

  • circles-intersect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (circles-intersect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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