Hi,
I would like to be able to rotate objects and text, at least 90, 180, 270
degrees.
I guess that you could use the same routines as used for flipping the
objects. If flipping is done like this:
Flip vertical: new X = old X
new Y = - old Y
Flip horizontal: new X = - old X
new Y = old Y
Flip both dir: new X = - old X
new Y = - old Y
The you could say that flipping both is the same as rotating 180 degrees.
The you should also be able to say that:
Rotate 90 degrees counter clockwise is: new X = old Y
new Y = - old X
Rotate 90 degrees clockwise is: new X = - old Y
new Y = old X
This is at least an idea, that don't require a lot of sin() and cos()
operations, but we get some fixed rotation.
_\\|//_
(-0-0-)
/-------------------------------ooO-(_)-Ooo------------------------------\
| Magnus Sandberg Email: [EMAIL PROTECTED] |
| Network Engineer, BlueLabs AB http://www.bluelabs.se/ |
| Phone: +46-8-470 2155 (FAX: +46-8-470 2199) GSM: +46-708-225 805 |
\------------------------------------------------------------------------/
|| ||
ooO Ooo