• Linearly interpolates between two values, x and y, based on the interpolation factor a.

    Parameters

    • x: number

      The start value.

    • y: number

      The end value.

    • a: number

      The interpolation factor (should be between 0 and 1).

    Returns number

    The interpolated value.