docs: update math API docs
This commit is contained in:
24
docs/api/math/vector4/operator-sub.md
Normal file
24
docs/api/math/vector4/operator-sub.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Vector4::operator-
|
||||
|
||||
```cpp
|
||||
Vector4 operator-(const Vector4& other) const
|
||||
```
|
||||
|
||||
向量减法。
|
||||
|
||||
**参数:**
|
||||
- `other` - 要相减的向量
|
||||
|
||||
**返回:** `Vector4` - 相减结果向量
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector4 a(5.0f, 6.0f, 7.0f, 8.0f);
|
||||
Vector4 b(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
Vector4 c = a - b; // (4, 4, 4, 4)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector4 总览](vector4.md) - 返回类总览
|
||||
Reference in New Issue
Block a user