format
typescript
Vector2.SetValues(x, y)class: Vector2
description
Sets the x and y components of an existing vector.
parameter
| param_name | type | description |
|---|---|---|
| x | number | The x component. |
| y | number | The y component. |
reture
| type | description |
|---|---|
void |
code example
typescript
let lhs = new Vector2(1, 2);
lhs.SetValues(0, 1);