We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3760d commit 134e00dCopy full SHA for 134e00d
books/RayTracingInOneWeekend.html
@@ -2922,7 +2922,7 @@
2922
2923
2924
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ Highlight
2925
- vec3 reflect(const vec3& v, const vec3& n) {
+ inline vec3 reflect(const vec3& v, const vec3& n) {
2926
return v - 2*dot(v,n)*n;
2927
}
2928
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
0 commit comments