February 2019
Intermediate to advanced
292 pages
6h 55m
English
We’re going to make your life as simple as possible by assuming every sphere’s origin (its center point) is situated at the world origin (that’s point(0, 0, 0)). We’ll also assume that these are all unit spheres, with radii of 1.
If you were to cast a ray through the center of one of these spheres, you would see the ray intersect in two places, like this:

More specifically, if the ray originates at (0, 0, -5), and passes directly through the origin, it should intersect the sphere at (0, 0, -1) and (0, 0, 1), 4 and 6 units (respectively) away from the ray’s origin, like the following figure shows.
Add the following ...
Read now
Unlock full access