Update API documentation and remove obsolete plan files
This commit is contained in:
26
docs/api/math/vector4/operator-neg.md
Normal file
26
docs/api/math/vector4/operator-neg.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Vector4::operator-
|
||||
|
||||
```cpp
|
||||
Vector4 operator-() const
|
||||
```
|
||||
|
||||
一元负号运算符,返回当前向量的负向量。
|
||||
|
||||
**返回:** `Vector4` - 每个分量取负的新向量
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector4 v(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
Vector4 neg = -v; // (-1.0f, -2.0f, -3.0f, -4.0f)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector4 总览](vector4.md)
|
||||
- [`operator+`](operator-add.md) - 加法
|
||||
- [`operator-`](operator-sub.md) - 二元减法
|
||||
Reference in New Issue
Block a user