New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong result when using beside
with circle and vector (1 & (-1))
#46
Comments
Tracking this down a bit further, I've reduced it to a smaller test case:
The problem is that the envelope for the given cubic segment returns the wrong value for
The correct solution is x = 1/2, but the Sigh. Maybe we ought to just switch to iterative rootfinding? What do "real" graphics programs (or other programs that have to solve "real world" quadratic or cubic equations) do? |
I thought I looked at My understanding is that for cubic and quartic you are better off with some iterative method (some are given in that book which I have around here somewhere). |
Ah, thanks for the link! Works like a charm. That PDF also has some stuff about solving cubics, I wonder if we should be using that too. Though I've never (yet) noticed any problems with |
Observe:
Looks OK. And now:
wat.
The text was updated successfully, but these errors were encountered: