linearly v0.32.0Docs


linearly v0.32.0 / vec2 / subtract

Function: subtract()

subtract(…vs): vec2

Subtracts the given vec2’s. When the argument is a single vector, it negates it. Otherwise, it subtracts from left to right.

Parameters

• …vs: vec2[]

Returns

vec2

Defined in

src/vec2.ts:80open in new window