Function lerp

Performs linear interpolation between two values.

  • Parameters

    • percent: number

      The interpolation factor.

    • a: number

      The start value.

    • b: number

      The end value.

    Returns number

    The interpolated value.