Maths · function

smoothstep

Hermite interpolation between two edges: 0 below a, 1 above b.

Explained in Coordinates and units.

function smoothstep(a: number, b: number, x: number): number
import { smoothstep } from '@driftengine/core';

Parameters

ParameterTypeDescription
anumber
bnumber
xnumber