Skip to content

format

typescript
Vector4.DivAssign(rhs)

class: Vector4

description

Divides the components of the current vector object by the corresponding components of another vector or a scalar value, and assigns the result to the current vector object.

parameter

param_nametypedescription
rhsnumber|Vector4The vector or scalar value used for the division operation.

reture

typedescription
void

code example

typescript
let lhs = new Vector4(1, 2, 3, 4);
lhs.DivAssign(1);
lhs.DivAssign(new Vector4(1, 2, 3, 4));