Computer Graphics, Mathematics, Linear Algebra.
The last thing we must do is calculate the discriminant of our At² + Bt + C = 0 function. The discriminant can be calculated using the formula: B² - 4AC There are 3 possible outcomes of the discriminant: If the discriminant is negative, the ray does not intersect with the sphere. If the