Precision Improvements for Ray/Sphere Intersection
![](/sites/default/files/styles/wide/public/publications/article1cropLores.png?itok=P6PLhY4k)
The traditional quadratic formula is often presented as the way to compute the intersection of a ray with a sphere. While mathematically correct, this factorization can be numerically unstable when using floating-point arithmetic. We give two little-known reformulations and show how each can improve precision.