Trait oxygengine_physics_2d::prelude::SupportMap [−][src]
pub trait SupportMap<N> where
N: RealField + Copy, {
fn local_support_point(
&self,
dir: &Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>
) -> OPoint<N, Const<2_usize>>;
fn local_support_point_toward(
&self,
dir: &Unit<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>>
) -> OPoint<N, Const<2_usize>> { ... }
fn support_point(
&self,
transform: &Isometry<N, Unit<Complex<N>>, 2_usize>,
dir: &Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>
) -> OPoint<N, Const<2_usize>> { ... }
fn support_point_toward(
&self,
transform: &Isometry<N, Unit<Complex<N>>, 2_usize>,
dir: &Unit<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>>
) -> OPoint<N, Const<2_usize>> { ... }
}
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<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>
) -> OPoint<N, Const<2_usize>>
Provided methods
fn local_support_point_toward(
&self,
dir: &Unit<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>>
) -> OPoint<N, Const<2_usize>>
fn local_support_point_toward(
&self,
dir: &Unit<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>>
) -> OPoint<N, Const<2_usize>>
Same as self.local_support_point
except that dir
is normalized.