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
from
andto
, using the decimalt
Example:
clerp(1, 2, .5): 1.5
When
t
is out of the range0
to1
, the result is clamped tofrom
orto
Example:
clerp(1, 2, 1.5): 2