# Vector2::operator/= ```cpp Vector2& operator/=(float scalar) ``` 向量除法赋值,将当前向量除以标量。 **参数:** - `scalar` - 标量值(不能为零) **返回:** `Vector2&` - 引用到修改后的当前向量 **线程安全:** ✅ **复杂度:** O(1) **示例:** ```cpp Vector2 v(4.0f, 6.0f); v /= 2.0f; // v = (2.0f, 3.0f) ``` ## 相关文档 - [Vector2 总览](vector2.md) - [`operator/`](operator-div.md) - 除法 - [`operator*=`](operator-mul-assign.md) - 乘法赋值