plus

operator fun plus(vector: Vec2): Vec2

Creates new vector containing sum of this and specified vectors.

Return

new vector containing sum of this and specified vectors.

Parameters

vector

the vector to add