Socket
Socket
Sign inDemoInstall

@cleerly/cardinal-spline-3d

Package Overview
Dependencies
0
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cleerly/cardinal-spline-3d

Smooth curve through points with tension and resolution options.


Version published
Maintainers
4
Created

Readme

Source

Cardinal spline

Generate cardinal splines in 2 or 3 dimentions

2d

(red boxes show control points)

3d

(rendered using npmcad)

example

var spline = require('cardinal-spline')

var points = spline([ //array of control points
    [x,y,z],...
  ],
  0.5, //tension
  20 //number of segments between each control point
)

License

adapted from epistemex/cardinal-spline-js

Released under MIT license. You can use this class in both commercial and non-commercial projects provided that full header (minified and developer versions) is included.

© 2013-2017 Epistemex

Epistemex

Keywords

FAQs

Last updated on 01 Apr 2018

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