is-cubic-really-line
function isCubicReallyLine(ps: number[][]): boolean
Defined in global-properties/classification/is-cubic-really-line.ts:23
Returns true
if the given bezier curve has all control points collinear
and it can be converted to an order 1 bezier curve (a line) such that the
same (x,y)
point is returned for the same t
value, false
otherwise.
- exact: not susceptible to floating point round-off
Note!
Green circles are draggable!
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | a cubic bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,6],[7,8]] |