add

fun add(vector: Vec2): Vec2

Adds a specified vector to this vector.

Return

this vector after adding the specified vector to it

Parameters

vector

the vector to add