Trait ncollide2df64::geom::ConcaveGeom
pub trait ConcaveGeom: Geom { fn map_part_at(&self, uint, |&M, &Geom|); fn map_transformed_part_at(&self, m: &M, uint, |&M, &Geom|); fn approx_interferences_with_aabb(&self, &AABB, &mut ~[uint]); fn approx_interferences_with_ray(&self, &Ray, &mut ~[uint]); fn aabb_at<'a>(&'a self, i: uint) -> &'a AABB; }
Trait implemented by concave, composite geometries supported by ncollide
.
A composite geometry is composed of several Geom
. Typically, it is a convex decomposition of
a concave geometry.
Required Methods
fn map_part_at(&self, uint, |&M, &Geom|)
Applies a function to each sub-geometry of this concave geometry.
fn map_transformed_part_at(&self, m: &M, uint, |&M, &Geom|)
Applies a transformation matrix and a function to each sub-geometry of this concave geometry.
fn approx_interferences_with_aabb(&self, &AABB, &mut ~[uint])
Computes the indices of every sub-geometry which might intersect a given AABB.
fn approx_interferences_with_ray(&self, &Ray, &mut ~[uint])
Computes the indices of every sub-geometry which might intersect a given Ray.
fn aabb_at<'a>(&'a self, i: uint) -> &'a AABB
Gets the AABB of the geometry identified by the index i
.