Skip to content

aninest root / Vec2 / subVec

subVec()

ts
function subVec(v1, v2): Vec2

Subtracts v2 from v1 immutably.

Parameters

v1: Vec2

v2: Vec2

Returns

Vec2

a new vector.

Defined in

Utils/vec2.ts:81