We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ebbfeb commit 2dbd8a9Copy full SHA for 2dbd8a9
1 file changed
content/post/Games101/HomeWork1-3/index.md
@@ -20,27 +20,7 @@ math: true
20
实际上M和V矩阵都是让世界物体做仿射变换,那什么是仿射变换?
21
简单来说就是平移+旋转+放缩三种变换的统称,我们用矩阵表示就是:
22
23
-$$
24
-\begin{bmatrix}
25
-x' \\
26
-y' \\
27
-z' \\
28
-1
29
-\end{bmatrix}
30
-=
31
32
- & & & t_x \\
33
- & R & & t_y \\
34
- & & & t_z \\
35
-0 & 0 & 0 & 1
36
37
38
-x \\
39
-y \\
40
-z \\
41
42
43
+$$\begin{bmatrix}x' \\y' \\z' \\1\end{bmatrix}=\begin{bmatrix}R & \mathbf{t} \\\mathbf{0}^T & 1\end{bmatrix}\begin{bmatrix}x \\y \\z \\1\end{bmatrix}$$
44
其中$R$表示旋转/缩放的部分,$t_x,t_y,t_z$是平移。
45
为了更直观,我们把三种基本变换拆开写:
46
平移矩阵:
0 commit comments