set

fun set(x: Double, y: Double): Vector2

Sets the vector components.

Return

A reference to this vector.

Parameters

x

The value of the x component.

y

The value of the y component.