cubic-through-point-given013
function cubicThroughPointGiven013(ps: number[][], p: number[], t: number): number[][]
Defined in create/cubic-through-point-given013.ts:16
Generates and returns a cubic bezier curve going through a specific point given control points 0,1 and 3.
- non-exact: the returned bezier does not necessarily go through the point exactly (due to floating-point round-off).
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | a cubic bezier curve's 1st, 2nd and 4th control point coordinates, i.e. [[x0,y0], [x1,y1], [x3,y3]] , e.g. [[1,2], [3,4], [5,6]] |
p | number[] | a point through which the bezier should go, e.g. [4.5,6.1] |
t | number | a t parameter value at which the bezier should go through the point - this is necessary due to a degree of freedom still left |