CubicBezierSegment
class CubicBezierSegment extends PolynomialSegment
A spline segment representing a cubic BΓ©zier curve.
Constructorsβ
constructorβ
Parameters
OverwritesPolynomialSegment.constructorPropertiesβ
p0β
p1β
p2β
p3β
Accessorsβ
arcLengthβ
public get arcLength(): number
PolynomialSegment.arcLengthpointsβ
public get override points(): Vector2[]
PolynomialSegment.pointsMethodsβ
drawβ
public drawcontext: CanvasRenderingContext2DPath2Dstart: number = 0end: number = 1move: boolean = true: CurvePointCurvePoint
Parameters
Inherited fromPolynomialSegment.drawevalβ
public evalt: number: CurvePoint
Evaluate the polynomial at the given t value.
Parameters
t: numberThe t value at which to evaluate the curve.
PolynomialSegment.evalgetBBoxβ
public getBBox(): BBox
PolynomialSegment.getBBoxgetPointβ
public getPointdistance: number: CurvePoint
Parameters
distance: number
PolynomialSegment.getPointsplitβ
public override splitt: number: PolynomialSegmentPolynomialSegment
Parameters
t: number
PolynomialSegment.splittangentβ
Return the tangent of the point that sits at the provided t value on the curve.
Parameters
t: numberThe t value at which to evaluate the curve.
PolynomialSegment.tangenttransformPointsβ
Parameters
Inherited fromPolynomialSegment.transformPoints