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