aboutsummaryrefslogtreecommitdiff
path: root/src/hittable/bvh_node.rs
diff options
context:
space:
mode:
authorlamp2024-01-21 17:14:08 +0000
committerlamp2024-01-21 17:14:08 +0000
commit919734955118c111c8180899c11a9a5f295ebe6d (patch)
treedf267af7cfaedad9f9ccdcfd42a31ea90974f86c /src/hittable/bvh_node.rs
parent45fafbcd4b41a5388ece377c4e051b5846407288 (diff)
tidy some todosmain
Diffstat (limited to 'src/hittable/bvh_node.rs')
-rw-r--r--src/hittable/bvh_node.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hittable/bvh_node.rs b/src/hittable/bvh_node.rs
index 405ab5b..64fa3a1 100644
--- a/src/hittable/bvh_node.rs
+++ b/src/hittable/bvh_node.rs
@@ -102,13 +102,11 @@ impl BVHNode {
.bounding_box(0.0, 0.0)
.expect("No bounding box in bvh_node constructor!");
- // TODO: total_cmp is unstable :(
box_a
.minimum
.get(axis as usize)
.unwrap()
- .partial_cmp(box_b.minimum.get(axis as usize).unwrap())
- .unwrap()
+ .total_cmp(box_b.minimum.get(axis as usize).unwrap())
}
}