Trait heron::rapier_plugin::rapier2d::parry::shape::SupportMap
source · pub trait SupportMap {
fn local_support_point(
&self,
dir: &Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
) -> OPoint<f32, Const<2>>;
fn local_support_point_toward(
&self,
dir: &Unit<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>>
) -> OPoint<f32, Const<2>> { ... }
fn support_point(
&self,
transform: &Isometry<f32, Unit<Complex<f32>>, 2>,
dir: &Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
) -> OPoint<f32, Const<2>> { ... }
fn support_point_toward(
&self,
transform: &Isometry<f32, Unit<Complex<f32>>, 2>,
dir: &Unit<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>>
) -> OPoint<f32, Const<2>> { ... }
}
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
fn local_support_point(
&self,
dir: &Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
) -> OPoint<f32, Const<2>>
Provided Methods
sourcefn local_support_point_toward(
&self,
dir: &Unit<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>>
) -> OPoint<f32, Const<2>>
fn local_support_point_toward(
&self,
dir: &Unit<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>>
) -> OPoint<f32, Const<2>>
Same as self.local_support_point
except that dir
is normalized.