Skip to main content

SupportMap

Trait SupportMap 

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

    // Provided methods
    fn local_support_point_toward(&self, dir: &Unit<Vector<f64>>) -> Point<f64> { ... }
    fn support_point(
        &self,
        transform: &Isometry<f64>,
        dir: &Vector<f64>,
    ) -> Point<f64> { ... }
    fn support_point_toward(
        &self,
        transform: &Isometry<f64>,
        dir: &Unit<Vector<f64>>,
    ) -> Point<f64> { ... }
}
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§

Provided Methods§

Source

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

Same as self.local_support_point except that dir is normalized.

Source

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

Source

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

Same as self.support_point except that dir is normalized.

Implementors§