Get bounds of rotated rectangle
Known data: bounding box width W, height H, rotation angle Fi Wanted: coordinates of rotated rectangle vertices. Unknown source rectangle size: w x h Bounding box size for this dimension and rotation angle: H = w * Abs(Sin(Fi)) + h * Abs(Cos(Fi)) W = w * Abs(Cos(Fi)) + h * Abs(Sin(Fi)) denote as = Abs(Sin(Fi)) … Read more