Determine the bounding box of a rotated rectangle
var bb = require('bounding-box')
var obj = {left: 221, top: 211, height: 220, width: 586}
console.log(bb(obj, 45))var bb = require('bounding-box')
var obj = {left: 221, top: 211, height: 220, width: 586}
// Rotate from top/left corner (origin 0 0)
console.log(bb(obj, 45, {
x: 221,
y: 211
}))With npm,
npm install bounding-box
BSD
