<1>平移矩陣3d
1點平移(點平移位置會改變)blog
1*x+0*y+0*z+tx*1 = x+txim
0*x+1*y+0*z+ty*1 = y+tyd3
0*x+0*y+1*z+tz*1 = z+tzmargin
0*x+0*y+0*z+1*1 = 1img
點的4個份量爲: (x+tx , y+ty , z+tz , 1)co
2 向量平移(向量沒有位置屬性)d3
<2>縮放矩陣ps
1 點縮放ab
kx*x+0*y+0*z+0*1 = kx*x
0*x+ky*y+0*z+0*1 = ky*y
0*x+0*y+kz*z+0*1 = kz*z
0*x+0*y+0*z+1*1 = 1
<3>旋轉矩陣(3個軸)
1 X軸旋轉
2 Y軸旋轉
3 Z軸旋轉