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]
fn new(shape: &'a G) -> Reflection<'a, G>
Build the reflection of a shape. Since the representation is implicit, the reflection computation is done in constant time.
fn shape(&self) -> &'a G
The reflected shape.
Trait Implementations
impl<'a, G: Debug + ?Sized + 'a> Debug for Reflection<'a, G>
[src]
impl<'a, P, M, G: ?Sized> SupportMap<P, M> for Reflection<'a, G> where
P: Point,
G: SupportMap<P, M>,
[src]
P: Point,
G: SupportMap<P, M>,
fn support_point(&self, m: &M, dir: &P::Vector) -> P
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