Struct ncollide2d::query::ContactPrediction
source · pub struct ContactPrediction<N: Real> {
pub linear: N,
pub angular1: N,
pub angular2: N,
}
Expand description
The prediction parameters for contact determination.n
Fields§
§linear: N
The linear prediction.
angular1: N
The angular regularization for the first solid.
angular2: N
The angular regularization for the second solid.
Implementations§
Auto Trait Implementations§
impl<N> RefUnwindSafe for ContactPrediction<N>where
N: RefUnwindSafe,
impl<N> Send for ContactPrediction<N>
impl<N> Sync for ContactPrediction<N>
impl<N> Unpin for ContactPrediction<N>where
N: Unpin,
impl<N> UnwindSafe for ContactPrediction<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.