Struct ncollide_geometry::shape::MinkowskiSum [] [src]

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

SupportMap representation of the Minkowski sum of two shapes.

The only way to obtain the sum points is to use its support mapping function.

  • 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> MinkowskiSum<'a, M, G1, G2>
[src]

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

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

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

The first shape of this Minkowski Sum.

The second shape of this Minkowski Sum.

Trait Implementations

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

Formats the value using the given formatter.

impl<'a, P, M, G1: ?Sized, G2: ?Sized> SupportMap<P, Id> for MinkowskiSum<'a, M, G1, G2> where
    P: Point,
    G1: SupportMap<P, M>,
    G2: SupportMap<P, M>, 
[src]

Evaluates the support function of the object. A support function is a function associating a vector to the shape point which maximizes their dot product. This does not include the margin of the object. Margins are shape-dependent. Use support_point to sample the complete shape. Read more

impl<'a, P, M, M2, G1: ?Sized, G2: ?Sized> RayCast<P, M2> for MinkowskiSum<'a, M, G1, G2> where
    P: Point,
    M2: Isometry<P>,
    G1: SupportMap<P, M>,
    G2: SupportMap<P, M>, 
[src]

Computes the time of impact, and normal between this transformed shape and a ray.

Computes the time of impact between this transform shape and a ray.

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

Tests whether a ray intersects this transformed shape.