QuadBezierSegment
class QuadBezierSegment extends PolynomialSegment
A spline segment representing a quadratic Bézier curve.
Constructors
constructor
Parameters
OverwritesPolynomialSegment.constructor
Properties
p0
p1
p2
Accessors
arcLength
public get arcLength(): number
PolynomialSegment.arcLength
points
public get override points(): Vector2[]
PolynomialSegment.points
Methods
draw
public drawcontext: CanvasRenderingContext2DPath2Dstart: number = 0end: number = 1move: boolean = true: CurvePointCurvePoint
Parameters
Inherited fromPolynomialSegment.draw
eval
public evalt: number: CurvePoint
Evaluate the polynomial at the given t value.
Parameters
t: number
The t value at which to evaluate the curve.
PolynomialSegment.eval
getBBox
public getBBox(): BBox
PolynomialSegment.getBBox
getPoint
public getPointdistance: number: CurvePoint
Parameters
distance: number
PolynomialSegment.getPoint
split
public override splitt: number: PolynomialSegmentPolynomialSegment
Parameters
t: number
PolynomialSegment.split
tangent
Return the tangent of the point that sits at the provided t value on the curve.
Parameters
t: number
The t value at which to evaluate the curve.
PolynomialSegment.tangent
transformPoints
Parameters
Inherited fromPolynomialSegment.transformPoints