format
typescript
Vector4.MulAssign(rhs)class: Vector4
description
Multiplies the current vector object by another vector or a scalar value and assigns the result to the current vector object.
parameter
| param_name | type | description |
|---|---|---|
| rhs | number|Vector4 | The vector or scalar value to multiply by. |
reture
| type | description |
|---|---|
void |
code example
typescript
let v4 = new Vector4(-1, -2, -3, -4);
v4.MulAssign(1);
v4.MulAssign(new Vector4(2, 3, 4, 5));