• Linear interpolation function

    Parameters

    • a: number

      An initial value when weight is 0.

    • b: number

      A terminal value when weight is 1.

    • w: number

      A weight between 0 and 1.

    Returns number

    The interpolated value between a and b with weight w.