Return a number between from and to, using the decimal t
from
to
t
Example: lerp(1, 2, .5): 1.5
lerp(1, 2, .5): 1.5
When t is out of the range 0 to 1, values outside from and to are returned instead
0
1
Example: lerp(1, 2, 1.5): 2.5
lerp(1, 2, 1.5): 2.5
Generated using TypeDoc
Return a number between
from
andto
, using the decimalt
Example:
lerp(1, 2, .5): 1.5
When
t
is out of the range0
to1
, values outsidefrom
andto
are returned insteadExample:
lerp(1, 2, 1.5): 2.5