Function lerp

  • Returns a value linearly interpolated from two known points based on the given interval - t = 0 will return x and t = 1 will return y.

    Parameters

    • x: number

      Start point.

    • y: number

      End point.

    • t: number

      interpolation factor in the closed interval [0, 1]

    Returns number

Generated using TypeDoc