Skip to content

format

typescript
Vector4.SetValues(x, y, z, w)

class: Vector4

description

Sets the values of an existing vector for each component.

parameter

param_nametypedescription
xnumberThe X component.
ynumberThe Y component.
znumberThe Z component.
wnumberThe W component.

reture

typedescription
void

code example

typescript
let v4 = new Vector4(-1, -2, -3, -4);
v4.SetValues(0, 1, 2, 3);