[][src]Struct linear_sim::constraint::Penetration

pub struct Penetration<'a, A, B> where
    A: Bounded + 'static,
    B: Bounded + 'static, 
{ pub object_a: &'a A, pub object_b: &'a B, }

An inter-penetration constraint

Fields

object_a: &'a Aobject_b: &'a B

Methods

impl<'a, A, B> Penetration<'a, A, B> where
    A: Bounded,
    B: Bounded
[src]

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]

impl<'a, A: Clone, B: Clone> Clone for Penetration<'a, A, B> where
    A: Bounded + 'static,
    B: Bounded + 'static, 
[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]

Auto Trait Implementations

impl<'a, A, B> Send for Penetration<'a, A, B> where
    A: Sync,
    B: Sync

impl<'a, A, B> Sync for Penetration<'a, A, B> where
    A: Sync,
    B: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self