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