• Calculates the linear parameter t that produces the interpolant value within the range [a, b].

    Returns

    the inverseLerp value

    Parameters

    • a: number

      start value

    • b: number

      target value

    • value: number

      value between a and b

    Returns number