Struct mgf::Manifold
[−]
[src]
pub struct Manifold { pub min_coll_time: f32, pub contacts: SmallVec<[LocalContact; 4]>, }
Structure for pruning unnecessary contact points.
Fields
min_coll_time: f32
contacts: SmallVec<[LocalContact; 4]>
Methods
impl Manifold
[src]
fn new() -> Self
[src]
fn with_capacity(cap: usize) -> Self
[src]
fn push(&mut self, new_contact: LocalContact)
[src]
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.
Trait Implementations
impl Clone for Manifold
[src]
fn clone(&self) -> Manifold
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more