Socket
Socket
Sign inDemoInstall

bezier-curve

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bezier-curve

Bezier curve interpolation


Version published
Weekly downloads
24
increased by26.32%
Maintainers
1
Install size
3.71 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 21 Mar 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc