wima
    Preparing search index...

    Function lerp

    • Interpolates between two numbers by a constant t.

      Parameters

      • from: number

        The minimal bound of the interpolation.

      • to: number

        The maximum bound of the interpolation.

      • t: number

        A number between 0 and 1 to interpolate by.Any other number greater than 1 or less than 0 will extapolate beyond b or a respectively.

      Returns number