3.0.0 • Published 8 years ago
cardinal-spline-3d v3.0.0
Cardinal spline
Generate cardinal splines in 2 or 3 dimentions

(red boxes show control points)

(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
