Skip to content

format

typescript
Vector2.SetValues(x, y)

class: Vector2

description

Sets the x and y components of an existing vector.

parameter

param_nametypedescription
xnumberThe x component.
ynumberThe y component.

reture

typedescription
void

code example

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