-
Notifications
You must be signed in to change notification settings - Fork 419
Open
Description
Disclaimer: I feel as though I am missing something fundamental here, that some existing component already serves this purpose and I don't know it.
Is there a reason that quadratic Bezier curves are not explicitly supported by this library? The BezierCurve2 class explicitly excludes them, likely due to not having a valid result for GetThirdDerivative(double t). I see three potential solutions to this:
BezierCurve2is modified to automatically convert quadratic bezier curves to cubic ones by calculating control point 1, which can be done as follows:
QuadraticBezierCurve2is added and its implementation ofGetThirdDerivative(t)always returnsdouble.NaN.BezierCurve2is modified to natively support quadratic bezier curves, but the boolean propertyisQuadraticis added, and GetThirdDerivative(t) returnsdouble.NaNwhen the curve is quadratic.
Metadata
Metadata
Assignees
Labels
No labels