Skip to main content

offset_aabb

Function offset_aabb 

Source
pub fn offset_aabb(local_box: Aabb, origin: Pos) -> Aabb
Expand description

Translate a local AABB by a world origin, rounding outward so the float box always contains the double box. Far from the origin a plain conversion could clip a shape out of its own box. In float mode the origin is float and the rounding is a no-op.