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.
2 parents 97b5ff9 + c840ded commit 5111229Copy full SHA for 5111229
books/RayTracingTheNextWeek.html
@@ -769,11 +769,6 @@
769
770
</div>
771
772
-I used the old-school C `qsort` rather than the C++ sort because I need a different compare operator
773
-depending on axis, and `qsort` takes a compare function rather than using the less-than operator. I
774
-pass in a pointer to pointer -- this is just C for “array of pointers” because a pointer in C can
775
-also just be a pointer to the first element of an array.
776
-
777
<div class='together'>
778
When the list coming in is two elements, I put one in each subtree and end the recursion. The
779
traverse algorithm should be smooth and not have to check for null pointers, so if I just have one
0 commit comments