wima
    Preparing search index...

    Function inverseLerp

    • Gets the interpolation constant between two numbers give a value between them.

      Parameters

      • from: number

        The minimal bound of the interpolation.

      • to: number

        The maximum bound of the interpolation.

      • value: number

        The value between the bounds.

      Returns number

      A number between 0 and 1 if value respects the bounds.