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,17 +1,28 @@
# Quaternion::Identity
```cpp
static Quaternion Identity()
static Quaternion Identity();
```
返回恒等四元数无旋转
返回单位四元数 (0, 0, 0, 1),表示无旋转。
**返回:** `Quaternion` - 值为 (0, 0, 0, 1) 的四元数
**返回:** 单位四元数
**线程安全:**
**复杂度:** O(1)
**示例:**
```cpp
#include <XCEngine/Math/Quaternion.h>
using namespace XCEngine::Math;
Quaternion identity = Quaternion::Identity();
// identity = (0, 0, 0, 1)
```
## 相关文档
- [Quaternion](quaternion.md) - 返回类总览