[src]

Trait ncollide2df64::implicit::Implicit

pub trait Implicit<V: RealVec<N>, M>: HasMargin {
    fn support_point_without_margin(&self, transform: &M, dir: &V) -> V;

    fn support_point(&self, transform: &M, dir: &V) -> V { ... }
}

Traits of convex geometries representable by a support mapping function.

Parameters:

Required Methods

fn support_point_without_margin(&self, transform: &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.

Provided Methods

fn support_point(&self, transform: &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.

Implementors