Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

interpolation-fns

skulptur21MIT0.1.2TypeScript support: included

Install

functional, math, interpolation, lerp, linear, cubic, cosine, catmull rom, nearest, smoothstep, typescript

readme

Get started

Install

npm install --save interpolation-fns
# or
yarn add interpolation-fns

Use

import { linear } from 'interpolation-fns';

console.log(linear(0, 1, 0.5));