Bezier.cubic()
Compute one dimension cubic bezier
Parameters
Name | Type | Description | |
---|---|---|---|
1 | p0 | number | |
2 | p1 | number | |
3 | p2 | number | |
4 | p3 | number | |
5 | t | number |
Return value
number
the result
Usage
import {Bezizer} from '@lcluber/type6js';
let p0 = 2;
let p1 = 3;
let p2 = 6;
let p3 = 7;
let t = 4;
let bezier = Bezier.cubic(p0,p1,p2,p3,t);