npm

Need private packages and team management tools?Check out npm Orgs. »

smoothstep

1.0.1 • Public • Published

browser support

smoothstep

frozen

Bare-bones smoothstep function (cubic Hermite interpolation), returning a value in the range 0.0 to 1.0.

Use:

var smoothstep = require('smoothstep')
 
var res = smoothstep(a, b, t);

Usage

NPM

smoothstep(min, max, t)

Performs smoothstep from min to max using the given value, by clamping and then using cubic Hermite interpolation.

License

BSD, see LICENSE.md for details.

install

npm i smoothstep

Downloadsweekly downloads

91

version

1.0.1

license

BSD

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability