linearly v0.32.0Docs


linearly v0.32.0 / vec2 / scale

Function: scale()

scale(a, s): vec2

Scales a vec2 by a scalar number

Parameters

a: vec2

the vector to scale

s: number

amount to scale the vector by

Returns

vec2

Defined in

src/vec2.ts:294open in new window