2 ms·
I was going through the ray tracer challenge book a while ago and this is the one thing I struggled with a little bit more than others. The underlying data str
by ljm 5y ago
I was going through the ray tracer challenge book a while ago and this is the one thing I struggled with a little bit more than others.
The underlying data structure made all the difference, but I still wasn't quite happy with how I approached it, with a bunch of nested loops and iterators.