• Return a number between from and to, using the decimal t

    Example: lerp(1, 2, .5): 1.5

    When t is out of the range 0 to 1, values outside from and to are returned instead

    Example: lerp(1, 2, 1.5): 2.5

    Parameters

    • from: number
    • to: number
    • t: number

    Returns number

Generated using TypeDoc