Function

piecewiseBezier

(pts: Vec2[]): (t: number) => Vec2