Constructors
constructor
- new Bezier(p1, p2, p3, p4): Bezier
Parameters
p1: number
p2: number
p3: number
p4: number
Methods
controlCurve
- controlCurve(d0, d1): void
Returns void
derivativeCoefficients
- derivativeCoefficients(points): number[][]
Returns number[][]
genValue
- genValue(t): number
Returns number
getSlope
- getSlope(t): number
Returns number
hull
- hull(t): any[]
Returns any[]
toJSON
- toJSON(): {
p0: number;
p1: number;
p2: number;
p3: number;
} Returns {
p0: number;
p1: number;
p2: number;
p3: number;
}
p0: number
p1: number
p2: number
p3: number
Static
fromJSON
- fromJSON(json): Bezier
Parameters
json: {
p0: number;
p1: number;
p2: number;
p3: number;
}
p0: number
p1: number
p2: number
p3: number