set

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

Sets this vector to the specified X and Y.

Return

this vector set to the specified values

Parameters

x

the new X component

y

the new Y component