I am looking to find the bounding box of a rotated rectangle. I know the top left corner of the rotated rectangle and it's width height and rotation.
Here is an image to help out. http://bisonkick.com/math/rect.png
I am looking to find the red line in the picture.
Any help would be amazingly appreciated.
What information are you given? A box is more than an object, it also involves a location. In any case, it's obvious that if you know the angle of rotation of the box (modulo
then you can figure out the longest distance straight across for the box, which will give you the side lengths. Add this to the location of the center of the box (presumably what it is being rotated about) and you have your box.