Trait parry3d::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
fn size_hint(&self) -> usize
[src]
Expand description
Gives an idea of the number of elements this generator contains.
This is primarily used for pre-allocating some arrays for better performances.
fn for_each(&mut self, f: impl FnMut(T, AABB))
[src]
Expand description
Iterate through all the elements of this generator.