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

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

    When t is out of the range 0 to 1, the result is clamped to from or to

    Example: clerp(1, 2, 1.5): 2

    Parameters

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

    Returns number

Generated using TypeDoc