1.0.1 • Published 9 years ago

get-control-points v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

getControlPoints

build status

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 point
  • b Array<number> end point
  • base number

Examples

getControlPoints([0, 0], [10, 10], 1.5);