(X,Y,Z)->(X',Y',Z')
X=X'+x-a
Y=Y'+y-b
Z=Z'+z-c
(X,Y,Z)'=(X',Y',Z')'(1 0 0;0 1 0;0 0 1)+(x-a,y-b,z-c)'
则变换矩阵为
M=
1 0 0
0 1 0
0 0 1.
(X,Y,Z)->(X',Y',Z')
X=X'+x-a
Y=Y'+y-b
Z=Z'+z-c
(X,Y,Z)'=(X',Y',Z')'(1 0 0;0 1 0;0 0 1)+(x-a,y-b,z-c)'
则变换矩阵为
M=
1 0 0
0 1 0
0 0 1.