Files
XCEngine/docs/api/math/vector4/operator-mul.md

24 lines
354 B
Markdown
Raw Normal View History

2026-03-20 02:35:15 +08:00
# Vector4::operator*
```cpp
Vector4 operator*(float scalar) const
```
向量与标量乘法。
**参数:**
- `scalar` - 标量值
**返回:** `Vector4` - 缩放后的向量
**示例:**
```cpp
Vector4 v(1.0f, 2.0f, 3.0f, 4.0f);
Vector4 scaled = v * 2.0f; // (2, 4, 6, 8)
```
## 相关文档
- [Vector4 总览](vector4.md) - 返回类总览