|
dl
|
矩阵操作 更多...
函数 | |
| Matrix4 | CreateIdentity () |
| 创建单位矩阵 | |
| Matrix4 | CreateTranslation (const Position3 &t) |
| 创建平移矩阵 | |
| void | ApplyTranslation (Matrix4 &m, const Position3 &t) |
| 平移矩阵 | |
| Matrix4 | CreateRotation (const Position3 &axis, Float angle) |
| 创建旋转矩阵 | |
| Matrix4 | CreateRotation (const Position4 &q) |
| 创建旋转矩阵(四元数) | |
| Matrix4 | CreateScaling (const Position3 &s) |
| 创建缩放矩阵 | |
| Matrix4 | CreateLookTo (const Position3 &eye, const Position3 &dir, const Position3 &up) |
| 创建LookTo矩阵 | |
| Matrix4 | CreateLookAt (const Position3 &eye, const Position3 &target, const Position3 &up) |
| 创建LookAt矩阵 | |
| Matrix4 | CreatePerspective (Float fovy, Float aspect, Float z_near, Float z_far) |
| 创建透视投影矩阵 [0, 1] | |
| Matrix4 | CreateOrthogonal (Float left, Float top, Float right, Float bottom, Float z_near, Float z_far) |
| 创建正交投影矩阵 [0, 1] | |
| Matrix4 | GetInverse (const Matrix4 &m) |
| 获得逆矩阵 | |
| Position3 | ApplyDot (const Matrix4 &mat, const Position3 &dot) |
| 变换点 | |
| Position3 | ApplyDir (const Matrix4 &mat, const Position3 &dir) |
| 变换向量 | |
| Matrix3 | ToMatrix3 (const Matrix4 &mat) |
| void | Test () |
| 验证正确性 | |
矩阵操作
变换向量
在文件 dl_matrix.h 第 387 行定义.
变换点
在文件 dl_matrix.h 第 382 行定义.
|
inline |
创建单位矩阵
在文件 dl_matrix.h 第 321 行定义.
|
inline |
创建LookAt矩阵
在文件 dl_matrix.h 第 361 行定义.
| Matrix4 dl::Mat::CreateLookTo | ( | const Position3 & | eye, |
| const Position3 & | dir, | ||
| const Position3 & | up ) |
创建LookTo矩阵
| Matrix4 dl::Mat::CreateOrthogonal | ( | Float | left, |
| Float | top, | ||
| Float | right, | ||
| Float | bottom, | ||
| Float | z_near, | ||
| Float | z_far ) |
创建正交投影矩阵 [0, 1]
创建透视投影矩阵 [0, 1]
| void dl::Mat::Test | ( | ) |
验证正确性
在文件 dl_matrix.h 第 392 行定义.