Find Upper Right Point of Rotated Rectangle in AS3 (Flex)
Posted
by coltech
on Stack Overflow
See other posts from Stack Overflow
or by coltech
Published on 2010-05-02T20:41:34Z
Indexed on
2010/05/02
20:48 UTC
Read the original article
Hit count: 171
I have a rectangle of any arbitrary width and height. I know X,Y, width, and height. How do I solve the upper right hand coordinates when the rectangle is rotated N degrees? I realized if it were axis aligned I would simply solve for (x,y+width). Unforunatly this doesn't hold true when I apply a transform matrix on the rectangle to rotate it around its center.
© Stack Overflow or respective owner