[PATCH 4/4] d2d1: Implement cubic bezier-line intersection.

Giovanni Mascellani gio at debian.org
Wed Apr 1 12:03:04 CDT 2020


Il 01/04/20 18:46, Paul Gofman ha scritto:
> Given the complex roots are not needed here and the polynomial is always
> cubic, is this generic method really beneficial? It would probably be
> simpler and quicker to find one root x1 with simple bisection, then
> divide the polynomial into (x - x1) and deal with remaining quadratic
> equation.

This kind of division is typically numerically unstable. It might be
that for cubic polynomials the problem is not very apparent, but given
that Aberth method doesn't look that difficult to me to implement, I
would go for that one. Also, I think that the Aberth method, being a
variation on Newton's method, is much quicker than bisection.

That said, I don't have much time to write code right now, so I won't
get in the way of those who are. Just a suggestion.

Giovanni.
-- 
Giovanni Mascellani <g.mascellani at gmail.com>
Postdoc researcher - Université Libre de Bruxelles

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200401/398e9516/attachment.sig>


More information about the wine-devel mailing list