File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Change Log / Ray Tracing in One Weekend
5
5
6
6
### Common
7
7
- Fix -- Fixed some dangling references to ` random_in_unit_sphere() ` (#1637 )
8
+ - Fix -- Clarify ` uniform_real_distribution ` usage for ` random_double() ` (#1680 )
8
9
9
10
### In One Weekend
10
11
- Fix -- Fix equation for refracted rays of non-unit length (#1644 )
Original file line number Diff line number Diff line change 2044
2044
}
2045
2045
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2046
2046
2047
+ inline double random_double(double min, double max) {
2048
+ // Returns a random real in [min,max).
2049
+ return min + (max-min)*random_double();
2050
+ }
2051
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2052
+
2053
+
2047
2054
...
2048
2055
2049
2056
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments