Skip to main content

line-to-cubic

function lineToCubic(ps: number[][]): number[][]

Defined in transformation/degree-or-type/line-to-cubic.ts:9

Returns a cubic bezier from the given line with evenly spaced control points.

Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
psnumber[][]a 2d line represented by two points