linearly v0.32.0Docs


linearly v0.32.0 / vec4 / scale

Function: scale()

scale(a, s): vec4

Scales a vec4 by a scalar number

Parameters

a: vec4

the vector to scale

s: number

amount to scale the vector by

Returns

vec4

Defined in

src/vec4.ts:362open in new window