Fix translation

This commit is contained in:
max.nuding 2022-07-11 15:41:05 +02:00
parent a63e001edd
commit a0eda53be1
Failed to extract signature

View File

@ -26,8 +26,8 @@ impl<H: Hittable> Hittable for Translate<H> {
fn bounding_box(&self, time0: f64, time1: f64) -> Option<Aabb> {
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
})
}