@blinkk/degu
    Preparing search index...

    Function smoothStep

    • Performs smoothstep from min to max using the given value using Hermite interpolation.

      Given three values, min, max and input, this will return a number between 0 and 1 that represents the progress of the input value to the min and max values.

      This is similar too [[mathf.normalize]] or [[mathf.getProgressInRangeByValue]] except the curve is slightly smoothed out.

      mathf.smoothStep(100, 200, 100); // 0
      mathf.smoothStep(100, 200, 150); // 0.5
      mathf.smoothStep(100, 200, 300); // 1

      Parameters

      • min: number

        The min of the range to lerp.

      • max: number

        The max of the range to lerp.

      • input: number

        A value between

      Returns number