Files
XCSDD/docs/api/math/quaternion/tomatrix4x4.md

19 lines
258 B
Markdown
Raw Permalink Normal View History

# Quaternion::ToMatrix4x4
```cpp
Matrix4x4 ToMatrix4x4() const
```
将四元数转换为 4x4 旋转矩阵。
**返回:** `Matrix4x4` - 旋转矩阵
**复杂度:** O(1)
**示例:**
```cpp
Quaternion rot = ...;
Matrix4 mat = rot.ToMatrix4x4();
```