use na::Transform; use bounding_volume::{AABB, HasBoundingVolume}; use bounding_volume::aabb_utils; use shape::ConvexHull; use math::Point; impl HasBoundingVolume> for ConvexHull

where P: Point, M: Transform

{ #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ let (min, max) = aabb_utils::point_cloud_aabb(m, self.points()); AABB::new(min, max) } }