plus

operator fun plus(v: Vec2): Vec2

Adds a vector and the current instance vector together and returns a new vector of them added together.

Return

Returns a new Vec2 of the sum of the addition of the two vectors.

Parameters

v

Vector to add.