format
typescript
Vector2.DivAssign(rhs)class: Vector2
description
Divides the components of the current vector object by the corresponding components or value of another vector, and assigns the result to the current vector object.
parameter
| param_name | type | description |
|---|---|---|
| rhs | number|Vector2 | The vector or value used for the division operation. |
reture
| type | description |
|---|---|
void |
code example
typescript
let lhs = new Vector2(1, 2);
lhs.DivAssign(1);
lhs.DivAssign(new Vector2(1, 2));