Files
AndroidNote/CustomView/Advance/[10]Matrix_Method.md

43 lines
1.4 KiB
Markdown
Raw Normal View History

2016-08-02 06:33:02 +08:00
# Matrix方法
2016-08-03 01:25:55 +08:00
2016-08-04 01:39:54 +08:00
## 前言
在上一篇文章中我们对Matrix做了一个简单的了解偏向理论在本文中则会详细的讲解Matrix的具体用法以及Matrix的一些实用技巧。
2016-08-03 01:25:55 +08:00
<p id="method" />
2016-08-04 01:39:54 +08:00
## Matrix方法表
按照惯例,先放方法表做概览。
2016-08-03 01:25:55 +08:00
方法类别 | 相关API | 摘要
-----------|---------------------------------------------------------|------------------------
基本方法 | equals hashCode toString toShortString | 比较、 获取哈希值、 转换为字符串
数值操作 | set reset setValues getValues | 设置、 重置、 设置数值、 获取数值
数值计算 | mapPoints mapRadius mapRect mapVectors | 计算变换后的数值
设置(set) | setConcat setRotate setScale setSkew setTranslate | 设置变换
前乘(pre) | preConcat preRotate preScale preSkew preTranslate | 前乘变换
后乘(post) | postConcat postRotate postScale postSkew postTranslate | 后乘变换
特殊方法 | setPolyToPoly setRectToRect rectStaysRect setSinCos | 一些特殊操作
矩阵相关 | invert isAffine isIdentity | 求逆矩阵、 是否为仿射矩阵、 是否为单位矩阵 ...
2016-08-04 01:39:54 +08:00
## Matrix方法详解
### 基本方法
### 数值操作
### 数值计算
### set pre 与 post
### 特殊方法
### 矩阵相关
## Matrix实用技巧