How to calculate SVG transform matrix from rotate/translate/scale values?
translate(tx, ty) can be written as the matrix: 1 0 tx 0 1 ty 0 0 1 scale(sx, sy) can be written as the matrix: sx 0 0 0 sy 0 0 0 1 rotate(a) can be written as the matrix: cos(a) -sin(a) 0 sin(a) cos(a) 0 0 0 1 rotate(a, cx, cy) is the … Read more