Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 28fc432

Browse files
committed
更正错误的示例图
1 parent 616115e commit 28fc432

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎notes/深入理解Android中的Matrix.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public class SimpleCustomAnimation extends Animation {
9999

100100
@Override
101101
protected void applyTransformation(float interpolatedTime, Transformation t) {
102-
Matrix matrix = t.getMatrix();
103102
Matrix matrix = t.getMatrix();
104103
matrix.preScale(interpolatedTime, interpolatedTime);//缩放
105104
matrix.preRotate(interpolatedTime * 360);//旋转
@@ -117,7 +116,7 @@ public class SimpleCustomAnimation extends Animation {
117116

118117
实际上这几行代码用矩阵来表示就相当于如下所示:
119118

120-
![](http://d.hiphotos.baidu.com/image/pic/item/c8ea15ce36d3d539cd1eedb43287e950352ab0a2.jpg)
119+
![](http://a.hiphotos.baidu.com/image/pic/item/a686c9177f3e67097989758633c79f3df8dc5539.jpg)
121120

122121
关于代码的作用上边已经给出了注释,这里就不多写了。主要还是要弄明白 Matrix 复合变换中 pre 、 post 等操作与其对应的矩阵发生的左乘、右乘变化。
123122

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /