pub trait BoundingVolume<const D: usize> {
    // Required method
    fn aabb(&self, geometry: &Geometry) -> Option<Aabb<D>>;
}
Expand description

Compute a bounding volume for an object

Required Methods§

source

fn aabb(&self, geometry: &Geometry) -> Option<Aabb<D>>

Compute an axis-aligned bounding box (AABB)

Return None, if no AABB can be computed (if the object is empty).

Implementors§