Skip to content

aninest root / Vec2 / addVec

addVec()

ts
function addVec(v1, v2): Vec2

Adds two vectors together, returning a new vector.

Parameters

v1: Vec2

v2: Vec2

Returns

Vec2

Defined in

Utils/vec2.ts:75