[src]

Struct ncollide2df64::geom::Reflection

pub struct Reflection<'a, G> {
    // some fields omitted
}

Implicit representation of the reflection of a geometry.

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

Methods

impl<'a, G> Reflection<'a, G>

fn new(g: &'a G) -> Reflection<'a, G>

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

fn g(&self) -> &'a G

The reflected geometry.

Trait Implementations

impl<'a, G: Eq> Eq for Reflection<'a, G>

Automatically derived.

fn eq(&self, __arg_0: &Reflection<'a, G>) -> bool

fn ne(&self, __arg_0: &Reflection<'a, G>) -> bool

impl<'a, G: ToStr> ToStr for Reflection<'a, G>

Automatically derived.

fn to_str(&self) -> ~str

impl<'a, G: Clone> Clone for Reflection<'a, G>

Automatically derived.

fn clone(&self) -> Reflection<'a, G>

impl<'a, G: HasMargin> HasMargin for Reflection<'a, G>

fn margin(&self) -> N

The geometry margin.

impl<'a, _M, G: Implicit<V, _M>> Implicit<V, _M> for Reflection<'a, G>

fn support_point(&self, m: &_M, dir: &V) -> V

Evaluates the support function of the object. A support function is a function associating a vector to the geometry point which maximizes their dot product.

Arguments:

  • dir - the input of the support function. It is not required for it to be normalized.

fn support_point_without_margin(&self, m: &_M, dir: &V) -> V

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

Arguments:

  • dir - the input of the support function. It is not required for it to be normalized.