We have a rectangle shape, we know it's height and width. We want to rotate it by some degrees and find out it's bounding box's width and height. Here's how I did it in Ruby:
Dad, Family Alpha, Software engineer, Heroes of the Storm and Minecraft player, Anime otaku, Metal and Goa enthusiast. https://www.visualcv.com/viktor-vad