Function lerp

  • Linearly interpolate a number between two numbers. 📘

    Returns

    ∈ [x, y]

    Parameters

    • x: number

      start number

    • y: number

      stop number

    • t: number

      interpolant ∈ [0, 1]

    Returns number

Generated using TypeDoc