linearly v0.32.0Docs


linearly v0.32.0 / scalar / smoothstep

Function: smoothstep()

smoothstep(edge0, edge1, x): number

Perform Hermite interpolation between two values.

Parameters

edge0: number

Lower edge of the Hermite function.

edge1: number

Upper edge of the Hermite function.

x: number

Source value for interpolation.

Returns

number

See

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

Defined in

src/scalar.ts:330open in new window