From 919734955118c111c8180899c11a9a5f295ebe6d Mon Sep 17 00:00:00 2001 From: lamp Date: Sun, 21 Jan 2024 17:14:08 +0000 Subject: tidy some todos --- src/hittable/bvh_node.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/hittable/bvh_node.rs') 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()) } } -- cgit v1.2.3