[][src]Trait parry2d::shape::SupportMap

pub trait SupportMap {
    fn local_support_point(&self, dir: &Vector<Real>) -> Point<Real>;

    fn local_support_point_toward(
        &self,
        dir: &Unit<Vector<Real>>
    ) -> Point<Real> { ... }
fn support_point(
        &self,
        transform: &Isometry<Real>,
        dir: &Vector<Real>
    ) -> Point<Real> { ... }
fn support_point_toward(
        &self,
        transform: &Isometry<Real>,
        dir: &Unit<Vector<Real>>
    ) -> Point<Real> { ... } }

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

Loading content...

Provided methods

fn local_support_point_toward(&self, dir: &Unit<Vector<Real>>) -> Point<Real>[src]

Same as self.local_support_point except that dir is normalized.

fn support_point(
    &self,
    transform: &Isometry<Real>,
    dir: &Vector<Real>
) -> Point<Real>
[src]

fn support_point_toward(
    &self,
    transform: &Isometry<Real>,
    dir: &Unit<Vector<Real>>
) -> Point<Real>
[src]

Same as self.support_point except that dir is normalized.

Loading content...

Implementors

impl SupportMap for ConstantOrigin[src]

impl SupportMap for Ball[src]

impl SupportMap for Capsule[src]

impl SupportMap for ConvexPolygon[src]

impl SupportMap for Cuboid[src]

impl SupportMap for Segment[src]

impl SupportMap for Triangle[src]

impl<'a, S: ?Sized + SupportMap> SupportMap for DilatedShape<'a, S>[src]

impl<S: SupportMap> SupportMap for RoundShape<S>[src]

Loading content...