pub struct SupportMapPlaneProximityDetector { /* private fields */ }
Expand description
Proximity detector between a plane and a shape implementing the SupportMap
trait.
Implementations§
source§impl SupportMapPlaneProximityDetector
impl SupportMapPlaneProximityDetector
sourcepub fn new() -> SupportMapPlaneProximityDetector
pub fn new() -> SupportMapPlaneProximityDetector
Creates a new persistent proximity detector between a plane and a shape with a support mapping function.
Trait Implementations§
source§impl Clone for SupportMapPlaneProximityDetector
impl Clone for SupportMapPlaneProximityDetector
source§fn clone(&self) -> SupportMapPlaneProximityDetector
fn clone(&self) -> SupportMapPlaneProximityDetector
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 SupportMapPlaneProximityDetector
impl<N: Real> ProximityDetector<N> for SupportMapPlaneProximityDetector
source§fn update(
&mut self,
disp: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> bool
fn update(
&mut self,
disp: &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 RefUnwindSafe for SupportMapPlaneProximityDetector
impl Send for SupportMapPlaneProximityDetector
impl Sync for SupportMapPlaneProximityDetector
impl Unpin for SupportMapPlaneProximityDetector
impl UnwindSafe for SupportMapPlaneProximityDetector
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.