3 Jul
2009
3 Jul
'09
9:24 p.m.
Hi Axel,
... but rotate an element which resides inside of a group things get more complicated. I tried with inkscape and found it will apply a matrix and also change the width and height and even the stroke-width
width and height and stroke-width won't change if you set "Store transformation = Preserved" in Inkscape Preferences.
Concerning transformations inside groups: Let A be the transform matrix of an object and B the accumulated transformations of all its parent groups. The absolute transformation of the object is
T = B * A
Now you want to transform this object by matrix C, gives you
T' = C * T = C * B * A = B * B.inverse * C * B * A = B * A'
with
A' = B.inverse * C * B * A
That's it :-)
Regards, Thomas