docs: update math API docs

This commit is contained in:
2026-03-20 02:35:15 +08:00
parent e165dbea1c
commit c5b17239ca
243 changed files with 5307 additions and 1327 deletions

View File

@@ -1,18 +1,32 @@
# Matrix4::Transpose
# Matrix4x4::Transpose
```cpp
Matrix4 Transpose() const
Matrix4x4 Transpose() const
```
返回矩阵的转置。
返回矩阵的转置。转置操作将矩阵的行和列互换。
**返回** `Matrix4` - 转置矩阵
**参数** (无)
**复杂度** O(1)
**返回** 转置后的矩阵
**线程安全:**
**复杂度:** O(n²) - O(16)
**示例:**
```cpp
Matrix4 m = ...;
Matrix4 transposed = m.Transpose();
#include "XCEngine/Math/Matrix4.h"
using namespace XCEngine::Math;
Matrix4 m = Matrix4::Identity();
Matrix4 t = m.Transpose();
// 转置后仍为单位矩阵
```
## 相关文档
- [Matrix4](matrix4.md) - 返回类总览
- [Inverse](inverse.md) - 矩阵求逆