Skip to content

Commit 0230e5b

Browse files
authored
Update
1 parent ff28117 commit 0230e5b

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

‎CustomView/Advance/[9]Matrix_Basic.md‎

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,46 @@ Matrix 是一个矩阵,最根本的作用就是坐标转换,下面我们就
6363
6464
### 1.缩放
6565
66-
以点(10,10)为例,我们将x缩放到原来到0.5倍,y缩放到原来到2倍,我们可以轻易到算出结果:(10x0.5, 10x2) = (5, 20)
66+
![](http://latex.codecogs.com/png.latex?
67+
$$
68+
x = MSCALE\\_X \\times x_0
69+
$$)
70+
71+
![](http://latex.codecogs.com/png.latex?
72+
$$
73+
y = MSCALE\\_Y \\times y_0
74+
$$)
75+
76+
用矩阵表示:
6777
6878
![](http://latex.codecogs.com/png.latex?
6979
$$
7080
\\left [
7181
\\begin{matrix}
72-
X\\\\
73-
Y
82+
x\\\\
83+
y\\\\
84+
1
7485
\\end{1}
7586
\\right ]
7687
=
7788
\\left [
7889
\\begin{matrix}
79-
Scale\\_X & 0 \\\\
80-
0 & Scale\\_Y
90+
MSCALE\\_X & 0 & 0 \\\\
91+
0 & MSCALE\\_Y & 0 \\\\
92+
0 & 0 & 1
8193
\\end{1}
8294
\\right ]
8395
.
8496
\\left [
8597
\\begin{matrix}
86-
x\\\\
87-
y
98+
x_0 \\\\
99+
y_0 \\\\
100+
1
88101
\\end{1}
89102
\\right ]
90103
$$)
91104
105+
图例:
92106
93107
### 2.错切
94108

0 commit comments

Comments
 (0)