Trait collision::algorithm::broad_phase::Variance [] [src]

pub trait Variance {
    type Bound: Bound;
    fn new() -> Self;
fn clear(&mut self);
fn add_bound(&mut self, bound: &Self::Bound);
fn compute_axis(
        &self,
        n: <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar
    ) -> (usize, <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar); }

Trait for variance calculation in sweep and prune algorithm

Associated Types

Point type

Required Methods

Create new variance object

Clear variance sums

Add an extent to the variance sums

Compute the sweep axis based on the internal values

Implementors