Name
bezier — computes points on Bezier curve
Synopsis
[x,y] = BEZIER(x0,y0,x1,y1,x2,y2,x3,y3[,reduction])
Description
A cubic Bezier curve is defined by four points. Two are endpoints. (x0,y0) is the origin endpoint. (x3,y3) is the destination endpoint. The points (x1,y1) and (x2,y2) are control points.
Function remove points in which vectors given by adjacent points inclined angel with tangent smaller than input value 'reduction'. Default value is 0.005.