Finding the intersection between a ray and cone wasn't too bad. How about a torus instead?

*it's a quartic equation*

Oh no

It turns out that finding the roots of a power of four equation is a *bit* complicated.

There's a lot of methods and most of them require many cases. Or just solve using complex numbers and then picking out whichever roots aren't imaginary at the end. Which is what I ended up doing.

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!