Trait bevy_rapier2d::prelude::SupportMap[][src]

pub trait SupportMap {
    fn local_support_point(
        &self,
        dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
    ) -> Point<f32, 2_usize>; fn local_support_point_toward(
        &self,
        dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
    ) -> Point<f32, 2_usize> { ... }
fn support_point(
        &self,
        transform: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
        dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
    ) -> Point<f32, 2_usize> { ... }
fn support_point_toward(
        &self,
        transform: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
        dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
    ) -> Point<f32, 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

Provided methods

Same as self.local_support_point except that dir is normalized.

Same as self.support_point except that dir is normalized.

Implementations on Foreign Types

Implementors