Skip to content

Commit 09f31bb

Browse files
committed
Fix member names in quad::random() code listing
Resolves #1266
1 parent 10e3ac5 commit 09f31bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

books/RayTracingTheRestOfYourLife.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@
27882788
}
27892789

27902790
vec3 random(const point3& origin) const override {
2791-
auto p = plane_origin + (random_double() * axis_A) + (random_double() * axis_B);
2791+
auto p = Q + (random_double() * u) + (random_double() * v);
27922792
return p - origin;
27932793
}
27942794
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++

0 commit comments

Comments
 (0)