Get bounds of unrotated rotated rectangle
I have a rectangle that has a rotation already applied to it. I want to get the the unrotated dimensions (the x, y, width, height). Here is the dimensions of the element currently: Bounds at a 90 rotation: { height 30 width 0 x 25 y 10 } Here are the dimensions after the rotation is set to none: Bounds at rotation 0 { height 0 width 30 x 10 y 25 } In the past, I was able to set the rotation to 0 and then read the updated bounds . However, there is a bug in one of the functions I was using, so now I have to do it manually. Is there a simple formula to get the bounds at rotation 0 using the info