Trait rapier2d::geometry::TypedSimdCompositeShape[][src]

pub trait TypedSimdCompositeShape {
    type PartShape: Shape + ?Sized;
    type PartId: IndexedData;
    pub fn map_typed_part_at(
        &self,
        shape_id: Self::PartId,
        f: impl FnMut(Option<&Isometry<f32, U2, Unit<Complex<f32>>>>, &Self::PartShape)
    );
pub fn map_untyped_part_at(
        &self,
        shape_id: Self::PartId,
        f: impl FnMut(Option<&Isometry<f32, U2, Unit<Complex<f32>>>>, &(dyn Shape + 'static))
    );
pub fn typed_quadtree(&self) -> &SimdQuadTree<Self::PartId>; }

Associated Types

Loading content...

Required methods

pub fn map_typed_part_at(
    &self,
    shape_id: Self::PartId,
    f: impl FnMut(Option<&Isometry<f32, U2, Unit<Complex<f32>>>>, &Self::PartShape)
)
[src]

pub fn map_untyped_part_at(
    &self,
    shape_id: Self::PartId,
    f: impl FnMut(Option<&Isometry<f32, U2, Unit<Complex<f32>>>>, &(dyn Shape + 'static))
)
[src]

pub fn typed_quadtree(&self) -> &SimdQuadTree<Self::PartId>[src]

Loading content...

Implementors

impl TypedSimdCompositeShape for Compound[src]

type PartShape = dyn Shape + 'static

type PartId = u32

impl TypedSimdCompositeShape for Polyline[src]

type PartShape = Segment

type PartId = u32

impl TypedSimdCompositeShape for TriMesh[src]

type PartShape = Triangle

type PartId = u32

impl<'a> TypedSimdCompositeShape for dyn SimdCompositeShape + 'a[src]

type PartShape = dyn Shape + 'static

type PartId = u32

Loading content...