Skip to main content

fold_world_bounds

Function fold_world_bounds 

Source
pub fn fold_world_bounds(
    boxes: impl IntoIterator<Item = ([f32; 3], [f32; 3])>,
) -> Option<([f32; 3], [f32; 3])>
Expand description

Union the world-space AABBs of every scene object into one bounds, skipping any box with a non-finite corner (a degenerate / sentinel AABB). Returns None for an empty scene. The probe eye is then probe_eye_point of this.