Skip to content

Commit b697333

Browse files
committed
Correct usage of the term "unit cube"
Resolves #1555
1 parent d8cc3e3 commit b697333

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Change Log / Ray Tracing in One Weekend
1010
- New --
1111

1212
### In One Weekend
13+
- Fix -- Fixed usage of the term "unit cube" for a cube of diameter two (#1555)
1314

1415
### The Next Week
1516

books/RayTracingInOneWeekend.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,9 +2302,9 @@
23022302
3. Invert the normalized vector if it falls onto the wrong hemisphere
23032303

23042304
<div class='together'>
2305-
First, we will use a rejection method to generate the random vector inside of the unit sphere. Pick
2306-
a random point in the unit cube, where $x$, $y$, and $z$ all range from -1 to +1, and reject this
2307-
point if it is outside the unit sphere.
2305+
First, we will use a rejection method to generate the random vector inside the unit sphere. Pick a
2306+
random point in the cube enclosing the unit sphere (that is, where $x$, $y$, and $z$ are all in the
2307+
range $[0,1]$), and reject this point if it is outside the unit sphere.
23082308

23092309
![Figure [sphere-vec]: Two vectors were rejected before finding a good one
23102310
](../images/fig-1.11-sphere-vec.jpg)

0 commit comments

Comments
 (0)