Skip to content

Commit 258dc3a

Browse files
committed
Clarify sphere implicit equation
Resolves #1252
1 parent 134e00d commit 258dc3a

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
@@ -774,9 +774,10 @@
774774

775775
$$ x^2 + y^2 + z^2 = r^2 $$
776776

777-
You can also think of this as saying that if a given point $(x,y,z)$ is on the sphere, then $x^2 +
778-
y^2 + z^2 = r^2$. If a given point $(x,y,z)$ is _inside_ the sphere, then $x^2 + y^2 + z^2 < r^2$,
779-
and if a given point $(x,y,z)$ is _outside_ the sphere, then $x^2 + y^2 + z^2 > r^2$.
777+
You can also think of this as saying that if a given point $(x,y,z)$ is on the surface of the
778+
sphere, then $x^2 + y^2 + z^2 = r^2$. If a given point $(x,y,z)$ is _inside_ the sphere, then
779+
$x^2 + y^2 + z^2 < r^2$, and if a given point $(x,y,z)$ is _outside_ the sphere, then
780+
$x^2 + y^2 + z^2 > r^2$.
780781

781782
If we want to allow the sphere center to be at an arbitrary point $(C_x, C_y, C_z)$, then the
782783
equation becomes a lot less nice:

0 commit comments

Comments
 (0)