PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Negative rotations?

Is it possible to specify a negative rotation angle when blitting a sprite?

I have a 18x18 sprite that I want to rotate to the left 45 degrees (i.e., it's a man standing there and I want him to be pointing north-east, which would be a negative rotation of 45 degrees), but -4500 doesn't seem to do what I expect. If this isn't possible, I offer it as an addition to a later version (and if it is currently possible, what might I be doing wrong?).

Thanks!
Isn't -45 degree rotation the same as a 315 degree rotation? (-45 + 360 = 315).


Maurice
You see children, this is what happens when you didn't pay any attention at all in geometry.

I still submit that allowing negative rotations (i.e., counterclockwise rotations) would be more intuitive, but yes, what you state gives me the results I wanted. I guess I was looing for the direct approach rather than thinking through what the final result really amounted to.
Yap, been experimenting with counter clockwise rotation using BLT but no success. Any tips? Regards.
Ok, this will be a simple fix for 2.03. fzammetti: Could you please send me a "2.03 todo" email with this? :) I'll have it in 2.03 due out on Monday.