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

@@ -0,0 +1,25 @@
# Vector4::Vector4
使用四个分量构造四维向量。
```cpp
constexpr Vector4(float x, float y, float z, float w)
```
**参数:**
- `x` - X 分量
- `y` - Y 分量
- `z` - Z 分量
- `w` - W 分量(通常用于齐次坐标)
**返回:** 新创建的 Vector4 实例
**示例:**
```cpp
Vector4 v(1.0f, 2.0f, 3.0f, 4.0f);
```
## 相关文档
- [Vector4 总览](vector4.md) - 返回类总览