Enum ncollide2d::query::proximity_internal::Proximity
source · pub enum Proximity {
Intersecting,
WithinMargin,
Disjoint,
}
Expand description
Proximity information.
Variants§
Intersecting
The two objects are intersecting.
WithinMargin
The two objects are non-intersecting but closer than a given distance.
Disjoint
The two objects are non-intersecting and further than a given distance.
Trait Implementations§
impl Copy for Proximity
impl StructuralPartialEq for Proximity
Auto Trait Implementations§
impl RefUnwindSafe for Proximity
impl Send for Proximity
impl Sync for Proximity
impl Unpin for Proximity
impl UnwindSafe for Proximity
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.