Descriptionalways compute a cubic tangent
If the inflection of a cubic is also the cusp, the tangent
is degenerate at that t when computed directly. Rather than
giving up, subdivide the curve there and use the computed
control points to compute the tangent.
This strategy also removes the error paths where the tangent
formerly could not be computed.
R=reed@google.com
BUG=615686
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2020293002
Committed: https://skia.googlesource.com/skia/+/ba150cc283301a28693a18d4aa9d14b1a1616ab3
Patch Set 1 #
Messages
Total messages: 11 (5 generated)
|