|
IxForm * | Data () SCONST PURE |
| 获取矩阵数据
|
|
void | reset () PURE |
| 清空矩阵
|
|
void | setIdentity () PURE |
| 将矩阵设定为单位矩阵
|
|
BOOL | isIdentity () SCONST PURE |
| 判断矩阵是否为单位矩阵
|
|
void | setTranslate (float dx, float dy) PURE |
| 设置矩阵平移
|
|
void | setScale (float sx, float sy) PURE |
| 设置矩阵缩放
|
|
void | setScale2 (float sx, float sy, float px, float py) PURE |
| 设置矩阵缩放,并指定缩放中心点
|
|
void | setRotate (float degrees) PURE |
| 设置矩阵旋转
|
|
void | setRotate2 (float degrees, float px, float py) PURE |
| 设置矩阵旋转,并指定旋转中心点
|
|
void | setSkew (float kx, float ky) PURE |
| 设置矩阵倾斜
|
|
void | setSkew2 (float kx, float ky, float px, float py) PURE |
| 设置矩阵倾斜,并指定倾斜中心点
|
|
Definition at line 9 of file SMatrix-i.h.
◆ Data()
获取矩阵数据
- Returns
- IxForm* – 矩阵数据
◆ isIdentity()
BOOL IMatrix::isIdentity |
( |
| ) |
|
判断矩阵是否为单位矩阵
- Returns
- BOOL – TRUE: 矩阵是单位矩阵
◆ reset()
◆ setIdentity()
void IMatrix::setIdentity |
( |
| ) |
|
◆ setRotate()
void IMatrix::setRotate |
( |
float | degrees | ) |
|
设置矩阵旋转
- Parameters
-
- Returns
- void
◆ setRotate2()
void IMatrix::setRotate2 |
( |
float | degrees, |
|
|
float | px, |
|
|
float | py ) |
设置矩阵旋转,并指定旋转中心点
- Parameters
-
degrees | float – 旋转角度 |
px | float – 旋转中心点x坐标 |
py | float – 旋转中心点y坐标 |
- Returns
- void
◆ setScale()
void IMatrix::setScale |
( |
float | sx, |
|
|
float | sy ) |
设置矩阵缩放
- Parameters
-
sx | float – x方向缩放比例 |
sy | float – y方向缩放比例 |
- Returns
- void
◆ setScale2()
void IMatrix::setScale2 |
( |
float | sx, |
|
|
float | sy, |
|
|
float | px, |
|
|
float | py ) |
设置矩阵缩放,并指定缩放中心点
- Parameters
-
sx | float – x方向缩放比例 |
sy | float – y方向缩放比例 |
px | float – 缩放中心点x坐标 |
py | float – 缩放中心点y坐标 |
- Returns
- void
◆ setSkew()
void IMatrix::setSkew |
( |
float | kx, |
|
|
float | ky ) |
设置矩阵倾斜
- Parameters
-
kx | float – x方向倾斜量 |
ky | float – y方向倾斜量 |
- Returns
- void
◆ setSkew2()
void IMatrix::setSkew2 |
( |
float | kx, |
|
|
float | ky, |
|
|
float | px, |
|
|
float | py ) |
设置矩阵倾斜,并指定倾斜中心点
- Parameters
-
kx | float – x方向倾斜量 |
ky | float – y方向倾斜量 |
px | float – 倾斜中心点x坐标 |
py | float – 倾斜中心点y坐标 |
- Returns
- void
◆ setTranslate()
void IMatrix::setTranslate |
( |
float | dx, |
|
|
float | dy ) |
设置矩阵平移
- Parameters
-
dx | float – x方向平移量 |
dy | float – y方向平移量 |
- Returns
- void
The documentation for this struct was generated from the following file: