Skip to content

Commit

Permalink
Merge branch 'dev-patch' of https://github.com/RayTracing/raytracing.…
Browse files Browse the repository at this point in the history
…github.io into dev-patch
  • Loading branch information
hollasch committed Apr 12, 2020
2 parents 97b5ff9 + c840ded commit 5111229
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions books/RayTracingTheNextWeek.html
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,6 @@

</div>

I used the old-school C `qsort` rather than the C++ sort because I need a different compare operator
depending on axis, and `qsort` takes a compare function rather than using the less-than operator. I
pass in a pointer to pointer -- this is just C for “array of pointers” because a pointer in C can
also just be a pointer to the first element of an array.

<div class='together'>
When the list coming in is two elements, I put one in each subtree and end the recursion. The
traverse algorithm should be smooth and not have to check for null pointers, so if I just have one
Expand Down

0 comments on commit 5111229

Please sign in to comment.