I parsed a transform attribute from an element in an SVG file something like rotate(45,30,50) and I would like to transform it to matrix form.
I searched for it and all I could found is only for rotate(a) with no coordinates which looks like this [cos(a) sin(a) -sin(a) cos(a) 0 0]
can any one show me how to transform the rotate(angle, x , y) to matrix form?
I found an easier way to get the transformation matrix of an SVG element.
Using the SVG element
getCTM()method I can get the transformation matrix of the element, including rotation, translation and everything else.