Intersection with quadrics
Substitute the parametric equation for a ray into
the equation for the quadric:
The equation is, in general quadratic in t
(may be linear, should be considered separately!)
Two solutions: if both positive, take the smaller,
if one positive take the positive, if both negative, there
A single solution (grazing intersection): if it is positive