How to get width and height of the bounding box of a rotated rectangle [duplicate]

自作多情 提交于 2019-12-08 08:21:24

问题


Possible Duplicate:
Calculate Bounding box coordinates from a rotated rectangle, Picture inside
AABB of rotated sprite?

I have a rectangle with a width of w and height of h. I rotate the rectangle r degrees(originating at its center point).

How can I determine the width(w2) and height(h2) of the bounding box after the rotation.

来源:https://stackoverflow.com/questions/10177308/how-to-get-width-and-height-of-the-bounding-box-of-a-rotated-rectangle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!