pub trait Variance {
type Bound: Bound;
// Required methods
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);
}Expand description
Trait for variance calculation in sweep and prune algorithm
Required Associated Types§
Required Methods§
Sourcefn compute_axis(
&self,
n: <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar,
) -> (usize, <<Self::Bound as Bound>::Point as EuclideanSpace>::Scalar)
fn compute_axis( &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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.