linearly v0.32.0Docs


linearly v0.32.0 / scalar / lerp

Function: lerp()

lerp(a, b, t): number

Linearly interpolate between two numbers. Same as GLSL’s bulit-in mix function.

Parameters

a: number

b: number

t: number

Returns

number

See

https://registry.khronos.org/OpenGL-Refpages/gl4/html/mix.xhtmlopen in new window

Shorthands

Defined in

src/scalar.ts:231open in new window