Update API documentation and remove obsolete plan files
This commit is contained in:
29
docs/api/math/vector2/operator-div.md
Normal file
29
docs/api/math/vector2/operator-div.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Vector2::operator/
|
||||
|
||||
```cpp
|
||||
Vector2 operator/(float scalar) const
|
||||
```
|
||||
|
||||
向量数除,将向量除以标量。
|
||||
|
||||
**参数:**
|
||||
- `scalar` - 标量值(不能为零)
|
||||
|
||||
**返回:** `Vector2` - 缩放后的向量
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector2 v(4.0f, 6.0f);
|
||||
Vector2 result = v / 2.0f; // (2.0f, 3.0f)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector2 总览](vector2.md)
|
||||
- [`operator*`](operator-mul.md) - 乘法
|
||||
- [`operator/=`](operator-div-assign.md) - 除法赋值
|
||||
Reference in New Issue
Block a user