Skip to content

Commit 594afa2

Browse files
committed
Another attempt at rewording the sphere equation
1 parent 517cd44 commit 594afa2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,10 @@
483483
<div class='together'>
484484
Let’s add a single object to our ray tracer. People often use spheres in ray tracers because
485485
calculating whether a ray hits a sphere is pretty straightforward. Recall that the equation for a
486-
sphere centered at the origin of radius $R$ is $x^2 + y^2 + z^2 = R^2$. Put another way, for
487-
$(x,y,z)$ _inside_ the sphere, $x^2 + y^2 + z^2 < R^2$, for points _outside_ the sphere, $x^2 + y^2
488-
+ z^2 > R^2$, and for points _on_ the sphere, $x^2 + y^2 + z^2 = R^2$.
486+
sphere centered at the origin of radius $R$ is $x^2 + y^2 + z^2 = R^2$. Put another way, if a given
487+
point $(x,y,z)$ is on the sphere, then $x^2 + y^2 + z^2 = R^2$. If the given point $(x,y,z)$ is
488+
_inside_ the sphere, then $x^2 + y^2 + z^2 < R^2$, and if a given point $(x,y,z)$ is _outside_ the
489+
sphere, then $x^2 + y^2 + z^2 > R^2$.
489490

490491
It gets uglier if the sphere center is at $(\mathbf{c}_x, \mathbf{c}_y, \mathbf{c}_z)$:
491492

0 commit comments

Comments
 (0)