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
fromandto, using the decimaltExample:
lerp(1, 2, .5): 1.5When
tis out of the range0to1, values outsidefromandtoare returned insteadExample:
lerp(1, 2, 1.5): 2.5