docs: update math API docs
This commit is contained in:
25
docs/api/math/vector4/constructor.md
Normal file
25
docs/api/math/vector4/constructor.md
Normal 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) - 返回类总览
|
||||
Reference in New Issue
Block a user