Struct mgf::ContactPruner [−][src]
pub struct ContactPruner<Params = DefaultPruningParams> where
Params: PruningParams, { /* fields omitted */ }
Structure for pruning unnecessary contact points.
Methods
impl<Params: PruningParams> ContactPruner<Params>
[src]
impl<Params: PruningParams> ContactPruner<Params>
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
pub fn push(&mut self, new_contact: LocalContact)
[src]
pub fn push(&mut self, new_contact: LocalContact)
Determines if the contact given is far away from all of the current contact points stored in the Manifold, and if it is pushes it into the vec. If two contact points are too close to each other, the furthest from the center of the geometries is chosen.
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Trait Implementations
impl<P: PruningParams> From<ContactPruner<P>> for Manifold
[src]
impl<P: PruningParams> From<ContactPruner<P>> for Manifold
fn from(pruner: ContactPruner<P>) -> Self
[src]
fn from(pruner: ContactPruner<P>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<Params> Send for ContactPruner<Params> where
Params: Send,
impl<Params> Send for ContactPruner<Params> where
Params: Send,
impl<Params> Sync for ContactPruner<Params> where
Params: Sync,
impl<Params> Sync for ContactPruner<Params> where
Params: Sync,