Trait parry3d::shape::SupportMap [−][src]
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> { ... } }
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
fn local_support_point_toward(&self, dir: &Unit<Vector<Real>>) -> Point<Real>
[src]
Expand description
Same as self.local_support_point
except that dir
is normalized.
fn support_point(
&self,
transform: &Isometry<Real>,
dir: &Vector<Real>
) -> Point<Real>
[src]
&self,
transform: &Isometry<Real>,
dir: &Vector<Real>
) -> Point<Real>
fn support_point_toward(
&self,
transform: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
[src]
&self,
transform: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
Expand description
Same as self.support_point
except that dir
is normalized.
Implementors
impl SupportMap for ConstantOrigin
[src]
impl SupportMap for ConstantOrigin
[src]fn support_point(&self, m: &Isometry<Real>, _: &Vector<Real>) -> Point<Real>
[src]
fn support_point_toward(
&self,
m: &Isometry<Real>,
_: &Unit<Vector<Real>>
) -> Point<Real>
[src]
&self,
m: &Isometry<Real>,
_: &Unit<Vector<Real>>
) -> Point<Real>
fn local_support_point(&self, _: &Vector<Real>) -> Point<Real>
[src]
fn local_support_point_toward(&self, _: &Unit<Vector<Real>>) -> Point<Real>
[src]
impl SupportMap for ConstantPoint
[src]
impl SupportMap for ConstantPoint
[src]fn support_point(&self, m: &Isometry<Real>, _: &Vector<Real>) -> Point<Real>
[src]
fn support_point_toward(
&self,
m: &Isometry<Real>,
_: &Unit<Vector<Real>>
) -> Point<Real>
[src]
&self,
m: &Isometry<Real>,
_: &Unit<Vector<Real>>
) -> Point<Real>
fn local_support_point(&self, _: &Vector<Real>) -> Point<Real>
[src]
fn local_support_point_toward(&self, _: &Unit<Vector<Real>>) -> Point<Real>
[src]
impl SupportMap for Ball
[src]
impl SupportMap for Ball
[src]fn support_point(&self, m: &Isometry<Real>, dir: &Vector<Real>) -> Point<Real>
[src]
fn support_point_toward(
&self,
m: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
[src]
&self,
m: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
fn local_support_point(&self, dir: &Vector<Real>) -> Point<Real>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<Real>>) -> Point<Real>
[src]
impl SupportMap for Capsule
[src]
impl SupportMap for Capsule
[src]impl SupportMap for Cone
[src]
impl SupportMap for Cone
[src]impl SupportMap for ConvexPolyhedron
[src]
impl SupportMap for ConvexPolyhedron
[src]impl SupportMap for Cuboid
[src]
impl SupportMap for Cuboid
[src]impl SupportMap for Cylinder
[src]
impl SupportMap for Cylinder
[src]impl SupportMap for Segment
[src]
impl SupportMap for Segment
[src]impl SupportMap for Triangle
[src]
impl SupportMap for Triangle
[src]impl<'a, S: ?Sized + SupportMap> SupportMap for DilatedShape<'a, S>
[src]
impl<'a, S: ?Sized + SupportMap> SupportMap for DilatedShape<'a, S>
[src]fn support_point(&self, m: &Isometry<Real>, dir: &Vector<Real>) -> Point<Real>
[src]
fn support_point_toward(
&self,
m: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
[src]
&self,
m: &Isometry<Real>,
dir: &Unit<Vector<Real>>
) -> Point<Real>
fn local_support_point(&self, dir: &Vector<Real>) -> Point<Real>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<Real>>) -> Point<Real>
[src]
impl<S: SupportMap> SupportMap for RoundShape<S>
[src]
impl<S: SupportMap> SupportMap for RoundShape<S>
[src]