[−][src]Struct linear_sim::constraint::Penetration
An inter-penetration constraint
Fields
object_a: &'a A
object_b: &'a B
Methods
impl<'a, A, B> Penetration<'a, A, B> where
A: Bounded,
B: Bounded,
[src]
A: Bounded,
B: Bounded,
pub fn resolve_position(&self) -> Option<(A, B)>
[src]
Apply a linear translation based on the result of a distance query on the objects.
If distance query indicates the objects are not intersecting, 'None' is returned.
Trait Implementations
impl<'a, A: PartialEq, B: PartialEq> PartialEq<Penetration<'a, A, B>> for Penetration<'a, A, B> where
A: Bounded + 'static,
B: Bounded + 'static,
[src]
A: Bounded + 'static,
B: Bounded + 'static,
fn eq(&self, other: &Penetration<'a, A, B>) -> bool
[src]
fn ne(&self, other: &Penetration<'a, A, B>) -> bool
[src]
impl<'a, A: Clone, B: Clone> Clone for Penetration<'a, A, B> where
A: Bounded + 'static,
B: Bounded + 'static,
[src]
A: Bounded + 'static,
B: Bounded + 'static,
fn clone(&self) -> Penetration<'a, A, B>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, A: Debug, B: Debug> Debug for Penetration<'a, A, B> where
A: Bounded + 'static,
B: Bounded + 'static,
[src]
A: Bounded + 'static,
B: Bounded + 'static,
Auto Trait Implementations
impl<'a, A, B> Send for Penetration<'a, A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<'a, A, B> Sync for Penetration<'a, A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self