[−][src]Trait ncollide2d::shape::SupportMap
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 support_point(&self, transform: &Isometry<N>, dir: &Vector<N>) -> Point<N>
Evaluates the support function of the object.
A support function is a function associating a vector to the shape point which maximizes their dot product.
Provided methods
fn support_point_toward(
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
Same as self.support_point
except that dir
is normalized.
Implementors
impl<N: Real> 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>
impl<N: Real> SupportMap<N> for Capsule<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>
impl<N: Real> SupportMap<N> for ConvexPolygon<N>
[src]
fn support_point(&self, m: &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>
impl<N: Real> SupportMap<N> for Cuboid<N>
[src]
fn support_point(&self, m: &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>
impl<N: Real> SupportMap<N> for Segment<N>
[src]
fn support_point(&self, m: &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>