bounding box
Determine the bounding box of a rotated rectangle
example
var bb = var obj = left: 221 top: 211 height: 220 width: 586 console
With custom center point
var bb = var obj = left: 221 top: 211 height: 220 width: 586 // Rotate from top/left corner (origin 0 0)console
install
With npm,
npm install bounding-box
license
BSD