get-control-points
v1.0.1
Published
get control points for a bezier curve given start, end, and base
Downloads
6
Readme
getControlPoints
Barebones method for deriving control points given start, end, and base. An implementation of http://scaledinnovation.com/analytics/splines/aboutSplines.html
getControlPoints
Get control points for a bezier curve, given start and end locations and a base for the curve shape. thanks to http://scaledinnovation.com/analytics/splines/aboutSplines.html
Parameters
a
Array<number>
start pointb
Array<number>
end pointbase
number
Examples
getControlPoints([0, 0], [10, 10], 1.5);