AxisAlignedBoundingBox.translate

giant.ray_tracer.shapes.axis_aligned_bounding_box:

AxisAlignedBoundingBox.translate(self, translation)

This method translates the AABB.

This is done by simply adding the translation to the min/max sides of the box in the original AABB frame. That is, if the bounding box has been rotated, we first rotate the provided translation into the original AABB frame, and then translate the min/max sides.

Parameters:

translation (ARRAY_LIKE) – the translation the the AABB is undergoing