cubic-interp
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

cubic-interp NPM version Build Status Dependency Status

Cubic interpolation function as implemented by Jason Bevins in libnoise.

Installation

$ npm install --save cubic-interp

Usage

var cubicInterp = require('cubic-interp');
 
var values = {
    n0: 1,
    n1: 5,
    n2: 8,
    n3: 10
};
 
var alpha = 0.5;
 
cubicInterp(values.n0, values.n1, values.n2, values.n3, alpha);

Project Setup

This project uses typescript as its build system.

  1. Install dependencies: $ npm i && npm run typings
  2. Build: $ npm run build

Testing

This project is using mocha for unit testing.

  • Compile and run tests: $ npm run build+test
  • Watch: $npm run watch

License

LGPL v2.1

Package Sidebar

Install

npm i cubic-interp

Weekly Downloads

0

Version

0.1.0

License

LGPL

Last publish

Collaborators

  • dpmorrow