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
12
13
use bounding_volume::{HasBoundingVolume, AABB};
use bounding_volume;
use shape::Triangle;
use math::Matrix;
use math::{Point, Scalar, Vector};

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Triangle<N> {
    #[inline]
    fn bounding_volume(&self, m: &Isometry<N>) -> AABB<N> {
        // FIXME: optimize that
        bounding_volume::implicit_shape_aabb(m, self)
    }
}