Trait rapier2d::geometry::SupportMap [−][src]
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
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
Provided methods
pub 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>
[src]
&self,
dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
Same as self.local_support_point
except that dir
is normalized.
pub 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>
[src]
&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>
pub 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>
[src]
&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>
Same as self.support_point
except that dir
is normalized.
Implementations on Foreign Types
impl SupportMap for ConstantPoint
[src]
pub fn support_point(
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub fn support_point_toward(
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
[src]
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
pub fn local_support_point(
&self,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub fn local_support_point_toward(
&self,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
[src]
&self,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
impl SupportMap for ConstantOrigin
[src]
pub fn support_point(
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub fn support_point_toward(
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
[src]
&self,
m: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
pub fn local_support_point(
&self,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
&Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub fn local_support_point_toward(
&self,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
[src]
&self,
&Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
impl<'a, S> SupportMap for DilatedShape<'a, S> where
S: SupportMap + ?Sized,
[src]
S: SupportMap + ?Sized,
pub fn support_point(
&self,
m: &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>
[src]
&self,
m: &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>
pub fn support_point_toward(
&self,
m: &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>
[src]
&self,
m: &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>
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub 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>
[src]
&self,
dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
Implementors
impl SupportMap for Ball
[src]
pub fn support_point(
&self,
m: &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>
[src]
&self,
m: &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>
pub fn support_point_toward(
&self,
m: &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>
[src]
&self,
m: &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>
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub 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>
[src]
&self,
dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
impl SupportMap for Capsule
[src]
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub 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>
[src]
&self,
dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>
impl SupportMap for ConvexPolygon
[src]
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
impl SupportMap for Cuboid
[src]
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
impl SupportMap for Segment
[src]
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
impl SupportMap for Triangle
[src]
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
impl<S> SupportMap for RoundShape<S> where
S: SupportMap,
[src]
S: SupportMap,
pub fn local_support_point(
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
[src]
&self,
dir: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Point<f32, 2_usize>
pub 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>
[src]
&self,
dir: &Unit<Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>>
) -> Point<f32, 2_usize>