Skip to content

Documentation / Vec2 / addVec

addVec() ​

ts
function addVec(v1, v2): Vec2;

Defined in: Utils/vec2.ts:76

Adds two vectors together, returning a new vector.

Parameters ​

v1 ​

Vec2

v2 ​

Vec2

Returns ​

Vec2