Computer Graphics, Python, Mathematics, Game Development, Game Design.
question: for which t, ray(t) will be on the sphere ? eq. 5 — sphere intersection This is an ordinary quadratic equation that we can solve for t. We will call the coefficients associated with t², t¹, t⁰ a, b, and c respectively. Let’s calculate the discriminant of that equation: eq. 6 —