From a0eda53be194bdcf2a68fb45641c7445bff9acab Mon Sep 17 00:00:00 2001 From: "max.nuding" Date: Mon, 11 Jul 2022 15:41:05 +0200 Subject: [PATCH] Fix translation --- src/translate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translate.rs b/src/translate.rs index 61896ed..ff4f95f 100644 --- a/src/translate.rs +++ b/src/translate.rs @@ -26,8 +26,8 @@ impl Hittable for Translate { fn bounding_box(&self, time0: f64, time1: f64) -> Option { self.hittable.bounding_box(time0, time1).map(|mut b| { - b.min += self.offset; - b.max += self.offset; + b.minimum += self.offset; + b.maximum += self.offset; b }) }