interpolation

1.0.0 • Public • Published

browser support

interpolation

stable

Wraps two common interpolation functions: lerp (linear interpolation) and smoothstep (Hermite interpolation).

npm install interpolation

Use:

var lerp = require('interpolation').lerp;
var smoothstep = require('interpolation').smoothstep;
 
var res = lerp(a, b, t);
var res2 = smoothstep(a, b, t);

License

MIT.

Package Sidebar

Install

npm i interpolation

Weekly Downloads

135

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mattdesl