Function lerp

  • Linearly interpolate a number between two numbers.

    Parameters

    • x: number

      start number

    • y: number

      stop number

    • t: number

      interpolant ∈ [0, 1]

    Returns number

    ∈ [x, y]

Generated using TypeDoc