File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1011
1011
The Box Comparison Functions
1012
1012
-----------------------------
1013
1013
Now we need to implement the box comparison functions, used by `std::sort()`. To do this, create a
1014
- generic comparator returns true if the first argument is less than the second, given an additional
1015
- axis index argument. Then define axis-specific comparison functions that use the generic comparison
1016
- function.
1014
+ generic comparator that returns true if the first argument is less than the second, given an
1015
+ additional axis index argument. Then define axis-specific comparison functions that use the generic
1016
+ comparison function.
1017
1017
1018
1018
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
1019
1019
class bvh_node : public hittable {
You can’t perform that action at this time.
0 commit comments