Trait heron::rapier_plugin::rapier2d::parry::partitioning::QBVHDataGenerator [−][src]
pub trait QBVHDataGenerator<T> {
fn size_hint(&self) -> usize;
fn for_each(&mut self, f: impl FnMut(T, AABB));
}
Expand description
Trait used for generating the content of the leaves of the QBVH acceleration structure.
Required methods
Gives an idea of the number of elements this generator contains.
This is primarily used for pre-allocating some arrays for better performances.