-
The translation(平移) matrix:
- T = [1 0 0; 0 1 0; tx ty 1]
-
The zoom matrix:
- S = [s 0 0; 0 s 0; 0 0 1]
-
The roration matrix:
- R = [cos() sin() 0; -sin() cos() 0; 0 0 1]
-
tx
for the x component of displacement -
ty
for the y component of displacement -
s
for both the x and y component of zoom -
cos(),sin()
, the parameter of which istheta
, the rotate angle