copy

fun copy(vector: Vec2): Vec2

Sets this vector to the X and Y of a specified vector.

Return

this vector with its X and Y set to that of the specified vector

Parameters

vector

the vector specifying the new components