linearly v0.32.0Docs


linearly v0.32.0 / vec4 / scaleAndAdd

Function: scaleAndAdd()

scaleAndAdd(a, b, scale): vec4

Adds given vec4’s after scaling the second operand by a scalar value *

Parameters

a: vec4

b: vec4

scale: number

the amount to scale b by before adding

Returns

vec4

Defined in

src/vec4.ts:397open in new window