# cubic-interp

> Cubic interpolation as implemented by Jason Bevins in libnoise.

Latest version **0.1.0** (published 2016-06-12) · LGPL license · 0 weekly downloads

## Install

```sh
npm install cubic-interp
pnpm add cubic-interp
yarn add cubic-interp
bun add cubic-interp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-06-12 |
| First published | 2016-06-12 |
| Weekly downloads | 0 |
| License | LGPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Douglas Morrow |
| Maintainers | dpmorrow |
| Keywords | cubic interpolation, interpolation |

## Links

- npm: https://www.npmjs.com/package/cubic-interp
- Repository: https://github.com/dpmorrow/cubic-interp
- Homepage: https://github.com/dpmorrow/cubic-interp#readme
- Issues: https://github.com/dpmorrow/cubic-interp/issues
- npm.io page: https://npm.io/package/cubic-interp

## Recent versions

- 0.1.0 (latest) — 2016-06-12

## README

# cubic-interp [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
> Cubic interpolation function as implemented by Jason Bevins in libnoise.

## Installation

```sh
$ npm install --save cubic-interp
```

## Usage

```js
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](https://github.com/Microsoft/TypeScript) as its build system.

1. Install dependencies: `$ npm i && npm run typings`
3. Build: `$ npm run build`

## Testing

This project is using [mocha](http://visionmedia.github.io/mocha/) for unit testing.

- Compile and run tests: `$ npm run build+test`
- Watch: `$npm run watch`

## License

**LGPL v2.1**

[npm-image]: https://badge.fury.io/js/cubic-interp.svg
[npm-url]: https://npmjs.org/package/cubic-interp
[travis-image]: https://travis-ci.org/dpmorrow/cubic-interp.svg?branch=master
[travis-url]: https://travis-ci.org/dpmorrow/cubic-interp
[daviddm-image]: https://david-dm.org/dpmorrow/cubic-interp.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/dpmorrow/cubic-interp

---
_Source: https://npm.io/package/cubic-interp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
