Skip to content

Commit be51987

Browse files
FineFindushollasch
authored andcommitted
Fix typo by adding missing word
Fixes a typo in Book 2, Listing 53, by adding a missing `if` in the comment. Resolves #1560
1 parent c3a5b71 commit be51987

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@
30383038

30393039

30403040
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
3041-
// Determine the hit point lies within the planar shape using its plane coordinates.
3041+
// Determine if the hit point lies within the planar shape using its plane coordinates.
30423042
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
30433043
auto intersection = r.at(t);
30443044
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight

src/TheNextWeek/quad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class quad : public hittable {
4949
if (!ray_t.contains(t))
5050
return false;
5151

52-
// Determine the hit point lies within the planar shape using its plane coordinates.
52+
// Determine if the hit point lies within the planar shape using its plane coordinates.
5353
auto intersection = r.at(t);
5454
vec3 planar_hitpt_vector = intersection - Q;
5555
auto alpha = dot(w, cross(planar_hitpt_vector, v));

src/TheRestOfYourLife/quad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class quad : public hittable {
5151
if (!ray_t.contains(t))
5252
return false;
5353

54-
// Determine the hit point lies within the planar shape using its plane coordinates.
54+
// Determine if the hit point lies within the planar shape using its plane coordinates.
5555
auto intersection = r.at(t);
5656
vec3 planar_hitpt_vector = intersection - Q;
5757
auto alpha = dot(w, cross(planar_hitpt_vector, v));

0 commit comments

Comments
 (0)