Fix translation
This commit is contained in:
parent
a63e001edd
commit
a0eda53be1
@ -26,8 +26,8 @@ impl<H: Hittable> Hittable for Translate<H> {
|
|||||||
|
|
||||||
fn bounding_box(&self, time0: f64, time1: f64) -> Option<Aabb> {
|
fn bounding_box(&self, time0: f64, time1: f64) -> Option<Aabb> {
|
||||||
self.hittable.bounding_box(time0, time1).map(|mut b| {
|
self.hittable.bounding_box(time0, time1).map(|mut b| {
|
||||||
b.min += self.offset;
|
b.minimum += self.offset;
|
||||||
b.max += self.offset;
|
b.maximum += self.offset;
|
||||||
b
|
b
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user