Basic helper methods for rectangles
The following methods can work on any objects of the form { x, y, width, height }
.
npm install semibran/rect
const { contains, intersects } = require('rect')
Determines if rectangle a
contains rectangle b
.
Determines if the four rectangle properties of a
and b
are equivalent.
MIT