New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bezier-curve

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bezier-curve

Bezier curve interpolation

1.0.0
latest
Source
npm
Version published
Weekly downloads
85
240%
Maintainers
1
Weekly downloads
 
Created
Source

bezier-curve

Bezier curve interpolation

Bezier curve interpolation of any order of control points of any dimensionality. Uses the De Casteljau algorithm. Though this module may be useful for educational purposes, for a faster alternative check this.

Install

$ npm install bezier-curve

Usage

var bezier = require('bezier-curve');

var points = [
  [-1.0,  0.0],
  [-0.5,  0.5],
  [ 0.5, -0.5],
  [ 1.0,  0.0]
];

for(var t=0; t<1; t+=0.01) {
  var point = bezier(t, points);
}

Keywords

bezier

FAQs

Package last updated on 21 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts