Struct ncollide_geometry::shape::Reflection [] [src]

pub struct Reflection<'a, G: ?Sized + 'a> { /* fields omitted */ }

SupportMap representation of the reflection of a shape.

A reflection is obtained with the central symmetry with regard to the origin.

Methods

impl<'a, G: ?Sized> Reflection<'a, G>
[src]

Build the reflection of a shape. Since the representation is implicit, the reflection computation is done in constant time.

The reflected shape.

Trait Implementations

impl<'a, G: Debug + ?Sized + 'a> Debug for Reflection<'a, G>
[src]

Formats the value using the given formatter.

impl<'a, P, M, G: ?Sized> SupportMap<P, M> for Reflection<'a, G> where
    P: Point,
    G: 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