format
typescript
Vector4.SetValues(x, y, z, w)class: Vector4
description
Sets the values of an existing vector for each component.
parameter
| param_name | type | description |
|---|---|---|
| x | number | The X component. |
| y | number | The Y component. |
| z | number | The Z component. |
| w | number | The W component. |
reture
| type | description |
|---|---|
void |
code example
typescript
let v4 = new Vector4(-1, -2, -3, -4);
v4.SetValues(0, 1, 2, 3);