Skip to content

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_nametypedescription
rhsnumber|Vector2The vector or value used for the division operation.

reture

typedescription
void

code example

typescript
let lhs = new Vector2(1, 2);
lhs.DivAssign(1);
lhs.DivAssign(new Vector2(1, 2));