Novice Prime Minister

    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.

    Install

    npm i interpolation

    DownloadsWeekly Downloads

    17

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • mattdesl