Skip to content

mattdesl/interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Bare-bones lerp and smoothstep functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published