andrew
Follow

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
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!