Function lerp

  • Linearly interpolate/mix two vectors.

    Parameters

    • out: Vec2
    • a: Vec2

      First vector

    • b: Vec2

      Second vector

    • t: number

      Lerp factor

    Returns Vec2