smoothstep

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

Smoothstep: a value in [0, 1] for x between minVal and maxVal, eased at both ends.

Return

The smoothed value.