docs: update math API docs
This commit is contained in:
@@ -1,17 +1,30 @@
|
||||
# Matrix4::Zero
|
||||
# Matrix4x4::Zero
|
||||
|
||||
```cpp
|
||||
static Matrix4 Zero()
|
||||
static Matrix4x4 Zero()
|
||||
```
|
||||
|
||||
返回零矩阵。
|
||||
返回零矩阵。所有元素初始化为 0 的矩阵。
|
||||
|
||||
**返回:** `Matrix4` - 零矩阵
|
||||
**参数:** (无)
|
||||
|
||||
**返回:** 零矩阵
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include "XCEngine/Math/Matrix4.h"
|
||||
|
||||
using namespace XCEngine::Math;
|
||||
|
||||
Matrix4 zero = Matrix4::Zero();
|
||||
// 所有元素均为 0
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Matrix4](matrix4.md) - 返回类总览
|
||||
Reference in New Issue
Block a user