From ec488ac8677dd60c5884d1654661276d02a2b86d Mon Sep 17 00:00:00 2001 From: sloop Date: Tue, 26 Jul 2016 05:13:51 +0800 Subject: [PATCH] Update --- CustomView/Advance/[9]Matrix_Basic.md | 48 ++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/CustomView/Advance/[9]Matrix_Basic.md b/CustomView/Advance/[9]Matrix_Basic.md index bbfb276..24b754d 100644 --- a/CustomView/Advance/[9]Matrix_Basic.md +++ b/CustomView/Advance/[9]Matrix_Basic.md @@ -122,7 +122,7 @@ Matrix 是一个矩阵,肯定会涉及到一些比较麻烦的理论知识, 以点(10,10)为例,我们将x缩放到原来到0.5倍,y缩放到原来到2倍,我们可以轻易到算出结果:(10x0.5, 10x2) = (5, 20) -计算公式: +**计算公式:** ![](http://latex.codecogs.com/png.latex? $$ @@ -149,7 +149,7 @@ y $$) -计算示例: +**计算示例:** ![](http://latex.codecogs.com/png.latex? $$ @@ -179,7 +179,7 @@ $$) 错切有水平错切(平行X轴)和垂直错切(平行Y轴),或者是两者叠加。 -计算公式: +**计算公式:** ![](http://latex.codecogs.com/png.latex? $$ @@ -210,14 +210,14 @@ X = x + Skew_X * y Y = Skew_Y * x + y ``` -计算示例: +**计算示例:** ![](http://latex.codecogs.com/png.latex? $$ \\left [ \\begin{matrix} -20\\\\ -5 +25\\\\ +10 \\end{1} \\right ] = @@ -230,8 +230,8 @@ $$ . \\left [ \\begin{matrix} -10\\\\ -5 +5\\\\ +10 \\end{1} \\right ] $$) @@ -239,6 +239,38 @@ $$) #### b.旋转 +**计算公式:** + +逆时针旋转 a 度。 + +![](http://latex.codecogs.com/png.latex? +$$ +\\left [ +\\begin{matrix} +X\\\\ +Y +\\end{1} +\\right ] + = +\\left [ +\\begin{matrix} +cos(a) & -sin(a) \\\\ +sin(a) & cos(a) +\\end{1} +\\right ] + . +\\left [ +\\begin{matrix} +x\\\\ +y +\\end{1} +\\right ] +$$) + + + + +**计算示例:**