如果有一个默认中心点为(0,0)的SVG旋转(a deg),那么我可以计算出旋转变换矩阵,如下所示:
_ _
| cos a -sin a 0 |
| sin a cos a 0 |
| 0 0 1 |
- -
但是如果枢轴点不是(0,0),比如说(px,py),那么我该如何计算旋转变换矩阵呢?