pub struct SupportMapSupportMapProximityDetector<N: Real> { /* private fields */ }
Expand description
Persistent proximity detector between two shapes having a support mapping function.
It is based on the GJK algorithm.
Implementations§
source§impl<N: Real> SupportMapSupportMapProximityDetector<N>
impl<N: Real> SupportMapSupportMapProximityDetector<N>
sourcepub fn new() -> SupportMapSupportMapProximityDetector<N>
pub fn new() -> SupportMapSupportMapProximityDetector<N>
Creates a new persistant proximity detector between two shapes with support mapping functions.
It is initialized with a pre-created simplex.
Trait Implementations§
source§impl<N: Clone + Real> Clone for SupportMapSupportMapProximityDetector<N>
impl<N: Clone + Real> Clone for SupportMapSupportMapProximityDetector<N>
source§fn clone(&self) -> SupportMapSupportMapProximityDetector<N>
fn clone(&self) -> SupportMapSupportMapProximityDetector<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: Real> ProximityDetector<N> for SupportMapSupportMapProximityDetector<N>
impl<N: Real> ProximityDetector<N> for SupportMapSupportMapProximityDetector<N>
source§fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> bool
fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> bool
Runs the proximity detection on two objects. It is assumed that the same proximity detector
(the same structure) is always used with the same pair of object. Read more
Auto Trait Implementations§
impl<N> RefUnwindSafe for SupportMapSupportMapProximityDetector<N>where
N: RefUnwindSafe,
impl<N> Send for SupportMapSupportMapProximityDetector<N>
impl<N> Sync for SupportMapSupportMapProximityDetector<N>
impl<N> Unpin for SupportMapSupportMapProximityDetector<N>where
N: Unpin,
impl<N> UnwindSafe for SupportMapSupportMapProximityDetector<N>where
N: UnwindSafe,
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.