Files
XCSDD/docs/api/math/transform/tomatrix.md

20 lines
277 B
Markdown
Raw Normal View History

# Transform::ToMatrix
```cpp
Matrix4 ToMatrix() const
```
将变换转换为 4x4 变换矩阵。
**返回:** `Matrix4` - TRS 变换矩阵
**复杂度:** O(1)
**示例:**
```cpp
Transform t;
t.position = Vector3(1.0f, 2.0f, 3.0f);
Matrix4 matrix = t.ToMatrix();
```