Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/unconed/MathBox.js
/ lerp
Function
lerp
src/Animator.js:309–311 ·
view source on GitHub ↗
(from, to)
Source
from the content-addressed store, hash-verified
307
308
// Linear interpolation
309
function
lerp(from, to) {
310
return
from + (to - from) * rolloff;
311
}
312
313
// Interpolate between two arbitrary values/objects.
314
function
process(from, to) {
Callers
1
process
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected