- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
454 B
454 B
Matrix4::Decompose
void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
将矩阵分解为平移、旋转和缩放分量。
参数:
translation- 输出平移向量rotation- 输出旋转四元数scale- 输出缩放向量
复杂度: O(1)
示例:
Matrix4 m = ...;
Vector3 translation;
Quaternion rotation;
Vector3 scale;
m.Decompose(translation, rotation, scale);