from the Qt docs:
QMatrix rotationMatrix
(cosa, sina,
-sina, cosa,
0,
0);
QMatrix rotationMatrix(cosa, sina, -sina, cosa, 0, 0);
To copy to clipboard, switch view to plain text mode
with sina being sin(a) and a being the rotation angle and so on.
Assuming that only rotations took place... Using your math skills you can surely calculate a from cosa and sina.
(I still think that keeping book of the rotation angle by pure addition of the deltas should be simpler und easier to understand than that. ;-)
HTH
Bookmarks