[][src]Struct ncollide_geometry::shape::AnnotatedMinkowskiSum

pub struct AnnotatedMinkowskiSum<'a, M: 'a, G1: ?Sized + 'a, G2: ?Sized + 'a> { /* fields omitted */ }

Same as the MinkowskiSum but with a support mapping which keeps track of the original supports points from the two wrapped shapes.

  • G1: type of the first object involved on the sum.
  • G2: type of the second object involved on the sum.

Methods

impl<'a, M, G1: ?Sized, G2: ?Sized> AnnotatedMinkowskiSum<'a, M, G1, G2>[src]

pub fn new(
    m1: &'a M,
    g1: &'a G1,
    m2: &'a M,
    g2: &'a G2
) -> AnnotatedMinkowskiSum<'a, M, G1, G2>
[src]

Builds the Minkowski sum of two shapes. Since the representation is implicit, this is done in constant time.

pub fn m1(&self) -> &'a M[src]

The transformation matrix of the first shape of this Minkowski Sum.

pub fn m2(&self) -> &'a M[src]

The transformation matrix of the second shape of this Minkowski Sum.

pub fn g1(&self) -> &'a G1[src]

The first shape of this Minkowski Sum.

pub fn g2(&self) -> &'a G2[src]

The second shape of this Minkowski Sum.

Trait Implementations

impl<'a, M: Debug + 'a, G1: Debug + ?Sized + 'a, G2: Debug + ?Sized + 'a> Debug for AnnotatedMinkowskiSum<'a, M, G1, G2>[src]

Auto Trait Implementations

impl<'a, M, G1: ?Sized, G2: ?Sized> Send for AnnotatedMinkowskiSum<'a, M, G1, G2> where
    G1: Sync,
    G2: Sync,
    M: Sync

impl<'a, M, G1: ?Sized, G2: ?Sized> Sync for AnnotatedMinkowskiSum<'a, M, G1, G2> where
    G1: Sync,
    G2: Sync,
    M: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self