Hi All and Thanks in advance for any help!
My math is not great and need help: I am *trying* to write a sprite placement editor for personal use and am stuck with the following:
When a 'sprite' <assume angle is zero> is clicked on <selected>, I draw a selection rectangle around it with four corners and a rotation point at extending at the top as follows:
o
|
o-------o
| |
| x |
| |
o-------o
Where x = Origin.
I want to do two things:
1] Rotate 'o' points by angle z around origin x
2] Rotate 'o' points to follow mouse (as in most graphics editing applications)
Can anyone please help?