Skip to content

Commit cb6498c

Browse files
authored
Update
1 parent 561b9d6 commit cb6498c

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,13 @@ matrix.postScale(0.5f, 0.5f, pivotX, pivotY);
432432
**假设我们需要先缩放再平移,下面我们用不同对方式来构造这一个矩阵:**
433433
434434
>
435-
**注意: 由于矩阵乘法不满足交换律,请保证初始矩阵为空,如果初始矩阵不为空,则可能导致两次运算结果不同。**
435+
**注意: 由于矩阵乘法不满足交换律,请保证初始矩阵为空,如果初始矩阵不为空,则可能导致运算结果不同。<br/>**
436+
**注意: 由于矩阵乘法不满足交换律,请保证初始矩阵为空,如果初始矩阵不为空,则可能导致运算结果不同。<br/>**
437+
**注意: 由于矩阵乘法不满足交换律,请保证初始矩阵为空,如果初始矩阵不为空,则可能导致运算结果不同。<br/>**
436438
437-
#### 1.pre:
439+
#### 1.仅用pre:
438440
439-
```
441+
``` java
440442
Matrix m = new Matrix();
441443
m.reset();
442444
m.preTranslate(tx, ty); //使用pre,越靠后越先执行。
@@ -480,9 +482,9 @@ sx & 0 & 0\\\\
480482
\\right ]
481483
$$)
482484
483-
#### 2.post:
485+
#### 2.仅用post:
484486
485-
```
487+
``` java
486488
Matrix m = new Matrix();
487489
m.reset();
488490
m.postScale(sx, sy); //使用post,越靠前越先执行。
@@ -528,7 +530,7 @@ $$)
528530
529531
#### 3.混合:
530532
531-
```
533+
``` java
532534
Matrix m = new Matrix();
533535
m.reset();
534536
m.preScale(sx, sy);
@@ -537,7 +539,7 @@ m.postTranslate(tx, ty);
537539
538540
或:
539541
540-
```
542+
``` java
541543
Matrix m = new Matrix();
542544
m.reset();
543545
m.postTranslate(tx, ty);

0 commit comments

Comments
 (0)