smootherstep

fun smootherstep(x: Double, minVal: Double, maxVal: Double): Double

Smootherstep: a variation on smoothstep with zero 1st and 2nd derivatives at both ends.

Return

The smoothed value.

Parameters

x

The value to evaluate based on its position between min and max.

minVal

Any x value below this is 0.

maxVal

Any x value above this is 1.