Update API documentation and remove obsolete plan files
This commit is contained in:
29
docs/api/math/vector2/operator-add-assign.md
Normal file
29
docs/api/math/vector2/operator-add-assign.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Vector2::operator+=
|
||||
|
||||
```cpp
|
||||
Vector2& operator+=(const Vector2& other)
|
||||
```
|
||||
|
||||
向量加法赋值,将 `other` 的分量加到当前向量。
|
||||
|
||||
**参数:**
|
||||
- `other` - 要加的向量
|
||||
|
||||
**返回:** `Vector2&` - 引用到修改后的当前向量
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector2 v(1.0f, 2.0f);
|
||||
v += Vector2(3.0f, 4.0f); // v = (4.0f, 6.0f)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector2 总览](vector2.md)
|
||||
- [`operator+`](operator-add.md) - 加法
|
||||
- [`operator-=`](operator-sub-assign.md) - 减法赋值
|
||||
Reference in New Issue
Block a user