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
Required Methods
fn new() -> Self
Create new variance object
fn clear(&mut self)
Clear variance sums
fn add_bound(&mut self, bound: &Self::Bound)
Add an extent to the variance sums
fn compute_axis(
&self,
n: <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar
) -> (usize, <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar)
&self,
n: <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar
) -> (usize, <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar)
Compute the sweep axis based on the internal values