Home > @taiyuuki/utils > Vec2 > mul
Vec2.mul() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
计算两个点相乘
Signature:
typescript
mul(v: number | Vec2): Vec2;
mul(v: number | Vec2): Vec2;
Parameters
Parameter | Type | Description |
---|---|---|
v | number | Vec2 | 参数“v”是一个number或“Vec2”对象。 |
Returns:
- 相乘得到的点