ncollide3d::shape

Trait SupportMap

Source
pub trait SupportMap<N: RealField + Copy> {
    // Required method
    fn local_support_point(&self, dir: &Vector<N>) -> Point<N>;

    // Provided methods
    fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N> { ... }
    fn support_point(
        &self,
        transform: &Isometry<N>,
        dir: &Vector<N>,
    ) -> Point<N> { ... }
    fn support_point_toward(
        &self,
        transform: &Isometry<N>,
        dir: &Unit<Vector<N>>,
    ) -> Point<N> { ... }
}
Expand description

Traits of convex shapes representable by a support mapping function.

§Parameters:

  • V - type of the support mapping direction argument and of the returned point.

Required Methods§

Source

fn local_support_point(&self, dir: &Vector<N>) -> Point<N>

Provided Methods§

Source

fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>

Same as self.local_support_point except that dir is normalized.

Source

fn support_point(&self, transform: &Isometry<N>, dir: &Vector<N>) -> Point<N>

Source

fn support_point_toward( &self, transform: &Isometry<N>, dir: &Unit<Vector<N>>, ) -> Point<N>

Same as self.support_point except that dir is normalized.

Implementors§