Enum ncollide2d::query::ClosestPoints
source · Expand description
Closest points information.
Variants§
Intersecting
The two objects are intersecting.
WithinMargin(Point<N>, Point<N>)
The two objects are non-intersecting but closer than a given user-defined distance.
Disjoint
The two objects are non-intersecting and further than a given user-defined distance.
Implementations§
Trait Implementations§
source§impl<N: Clone + Real> Clone for ClosestPoints<N>
impl<N: Clone + Real> Clone for ClosestPoints<N>
source§fn clone(&self) -> ClosestPoints<N>
fn clone(&self) -> ClosestPoints<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: PartialEq + Real> PartialEq<ClosestPoints<N>> for ClosestPoints<N>
impl<N: PartialEq + Real> PartialEq<ClosestPoints<N>> for ClosestPoints<N>
source§fn eq(&self, other: &ClosestPoints<N>) -> bool
fn eq(&self, other: &ClosestPoints<N>) -> bool
impl<N: Copy + Real> Copy for ClosestPoints<N>
impl<N: Real> StructuralPartialEq for ClosestPoints<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for ClosestPoints<N>where
N: RefUnwindSafe,
impl<N> Send for ClosestPoints<N>
impl<N> Sync for ClosestPoints<N>
impl<N> Unpin for ClosestPoints<N>where
N: Unpin,
impl<N> UnwindSafe for ClosestPoints<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.