Return a number between from and to, using the decimal t
from
to
t
Example: clerp(1, 2, .5): 1.5
clerp(1, 2, .5): 1.5
When t is out of the range 0 to 1, the result is clamped to from or to
0
1
Example: clerp(1, 2, 1.5): 2
clerp(1, 2, 1.5): 2
Generated using TypeDoc
Return a number between
fromandto, using the decimaltExample:
clerp(1, 2, .5): 1.5When
tis out of the range0to1, the result is clamped tofromortoExample:
clerp(1, 2, 1.5): 2