lerp
Script
v1
Fork
1
2
3
export
function
lerp
(
from
:
number
,
to
:
number
,
ratio
:
number
)
:
number
{
return
from
*
(
1.0
-
ratio
)
+
to
*
ratio
;
}