ncollide2d 0.16.0

2 and 3-dimensional collision detection library in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use na::Real;
use bounding_volume::{HasBoundingVolume, AABB};
use math::Isometry;
use shape::Shape;

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Shape<N> {
    #[inline]
    fn bounding_volume(&self, m: &Isometry<N>) -> AABB<N> {
        self.aabb(m)
    }
}