MCPcopy Index your code
hub / github.com/microsoft/SandDance / lerp

Function lerp

docs/app/js/sanddance-app.js:69465–69468  ·  view source on GitHub ↗
(a, b, t)

Source from the content-addressed store, hash-verified

69463 return map(value1, (value)=>Math.max(min, Math.min(max, value)));
69464}
69465function lerp(a, b, t) {
69466 if (isArray(a)) return a.map((ai, i)=>lerp(ai, b[i], t));
69467 return t * b + (1 - t) * a;
69468}
69469function equals(a, b, epsilon) {
69470 const oldEpsilon = config.EPSILON;
69471 if (epsilon) config.EPSILON = epsilon;

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.70
peekFunction · 0.70

Tested by

no test coverage detected