QuadraticBezierCurve

p5ex~ QuadraticBezierCurve

Trimmable quadratic bezier curve.

Constructor

new QuadraticBezierCurve(p, startPoint, controlPoint, endPoint, resolution, startRatioRef, endRatioRef)

Source:
Parameters:
Name Type Description
p
startPoint
controlPoint
endPoint
resolution
startRatioRef
endRatioRef

Methods

(static) checkControlPoint(controlPoint, startPoint, endPoint, minDistance, minAngle, maxAngle)

Returns true if the provided control point candidate is valid.
Source:
Parameters:
Name Type Description
controlPoint The control point candidate to be checked.
startPoint The start point of the bezier curve.
endPoint The start point of the bezier curve.
minDistance Minimum distance between the control point and the start/end point.
minAngle Minimum angle of the control point.
maxAngle Maximum angle of the control point.