Trait ncollide3d::shape::SupportMap [−][src]
pub trait SupportMap<N: RealField> { fn local_support_point(&self, dir: &Vector<N>) -> Point<N>; 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> { ... } }
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
fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
Provided methods
fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>
[src]
Same as self.local_support_point
except that dir
is normalized.
fn support_point(&self, transform: &Isometry<N>, dir: &Vector<N>) -> Point<N>
[src]
fn support_point_toward(
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
[src]
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
Same as self.support_point
except that dir
is normalized.
Implementors
impl<'a, N: RealField, S: ?Sized + SupportMap<N>> SupportMap<N> for DilatedShape<'a, N, S>
[src]
impl<'a, N: RealField, S: ?Sized + SupportMap<N>> SupportMap<N> for DilatedShape<'a, N, S>
[src]fn support_point(&self, m: &Isometry<N>, dir: &Vector<N>) -> Point<N>
[src]
fn support_point_toward(
&self,
m: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
[src]
&self,
m: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for ConstantOrigin
[src]
impl<N: RealField> SupportMap<N> for ConstantOrigin
[src]fn support_point(&self, _: &Isometry<N>, _: &Vector<N>) -> Point<N>
[src]
fn support_point_toward(&self, _: &Isometry<N>, _: &Unit<Vector<N>>) -> Point<N>
[src]
fn local_support_point(&self, _: &Vector<N>) -> Point<N>
[src]
fn local_support_point_toward(&self, _: &Unit<Vector<N>>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Ball<N>
[src]
impl<N: RealField> SupportMap<N> for Ball<N>
[src]fn support_point(&self, m: &Isometry<N>, dir: &Vector<N>) -> Point<N>
[src]
fn support_point_toward(
&self,
m: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
[src]
&self,
m: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Capsule<N>
[src]
impl<N: RealField> SupportMap<N> for Capsule<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Cone<N>
[src]
impl<N: RealField> SupportMap<N> for Cone<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for ConvexHull<N>
[src]
impl<N: RealField> SupportMap<N> for ConvexHull<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Cuboid<N>
[src]
impl<N: RealField> SupportMap<N> for Cuboid<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Cylinder<N>
[src]
impl<N: RealField> SupportMap<N> for Cylinder<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Segment<N>
[src]
impl<N: RealField> SupportMap<N> for Segment<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
impl<N: RealField> SupportMap<N> for Triangle<N>
[src]
impl<N: RealField> SupportMap<N> for Triangle<N>
[src]