Column-major 4x4 matrix (OpenGL / glTF / Assimp-compatible layout). Elements: m[col * 4 + row]. 更多...
#include <AnimMath.h>
Public 成员函数 | |
| void | transformPoint (float x, float y, float z, float &ox, float &oy, float &oz) const |
静态 Public 成员函数 | |
| static Mat4 | identity () |
| static Mat4 | fromTRS (const TransformTRS &t) |
| static Mat4 | mul (const Mat4 &a, const Mat4 &b) |
Public 属性 | |
| float | m [16] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1} |
详细描述
Column-major 4x4 matrix (OpenGL / glTF / Assimp-compatible layout). Elements: m[col * 4 + row].
在文件 AnimMath.h 第 97 行定义.
成员函数说明
◆ fromTRS()
|
inlinestatic |
在文件 AnimMath.h 第 102 行定义.
引用了 m, eve::animation::TransformTRS::px, eve::animation::TransformTRS::py, eve::animation::TransformTRS::pz, eve::animation::TransformTRS::qw, eve::animation::TransformTRS::qx, eve::animation::TransformTRS::qy, eve::animation::TransformTRS::qz, eve::animation::TransformTRS::sx, eve::animation::TransformTRS::sy, eve::animation::TransformTRS::sz, w, x, y , 以及 z.
被这些函数引用 eve::animation::AnimPose::getWorldMatrix() , 以及 eve::animation::AnimPose::getWorldMatrixElement().
◆ identity()
|
inlinestatic |
在文件 AnimMath.h 第 100 行定义.
◆ mul()
在文件 AnimMath.h 第 129 行定义.
◆ transformPoint()
|
inline |
类成员变量说明
◆ m
| float eve::animation::Mat4::m[16] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1} |
在文件 AnimMath.h 第 98 行定义.
被这些函数引用 fromTRS(), eve::animation::AnimPose::getWorldMatrix(), eve::animation::AnimPose::getWorldMatrixElement(), mul() , 以及 transformPoint().
该结构体的文档由以下文件生成:
- src/modules/animation/AnimMath.h