• Interpolates (more) smoothly between 0 and 1, based on the value of X relative to the left and right edges. https://en.wikipedia.org/wiki/Smoothstep

    Parameters

    • leftEdge: number

      The minimum value, assumed smaller than the right edge.

    • rightEdge: number

      The maximum value, assumed smaller than the right edge.

    • x: number

      The value between the left and right edges

    Returns number

    0 if x is less than the leftEdge, 1 if x is greater than the right edge, else a smoothly interpolated value between 0 and 1.