UNPKG

@davidcal/fec-raptorq

Version:

Node.js wrapper for RaptorQ forward error correction

7 lines (6 loc) 163 B
/** * Interpolates linearly between two values `a` and `b` based on the parametric value `t`. */ export const lerp = (a, b, t) => { return a + (b - a) * t; };