linearly v0.32.0Docs


linearly v0.32.0 / vec3 / subtract

Function: subtract()

subtract(…vs): vec3

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

Parameters

• …vs: vec3[]

Returns

vec3

Shorthands

Defined in

src/vec3.ts:97open in new window