Convex polygon collision detection
npm install collidesCollision test for two polygons
$ npm install --save collides
`Usage
`
var collides = require('collides');collides(
{
x: 1,
y: 1,
width: 1,
height: 1
}, {
x: 1,
y: 2,
width: 1,
height: 1.1,
}
) // => true
collides(
{
x: 1,
y: 1,
width: 1,
height: 1
}, {
x: 1,
y: 2,
width: 1,
height: 1,
}
) // => false
``- Generic polygon collisions
This code is released under
CC0 (Public Domain)