swap

fun swap(vector: Vec2): Vec2

Swaps this vector with the specified vector. This vector's components are set to the values of the specified vector's components, and the specified vector's components are set to the values of this vector's components.

Return

this vector set to the values of the specified vector

Parameters

vector

the vector to swap with this vector