bounding-box

Determines the bounding box of some object.

bounding box

Determine the bounding box of a rotated rectangle

example

var bb = require('bounding-box')
 
var obj = {left: 221, top: 211, height: 220, width: 586}
 
console.log(bb(obj, 45))
 

install

With npm,

npm install bounding-box

license

BSD