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

where P: Point, M: Transform

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

{ let (center, radius) = bounding_volume::point_cloud_bounding_sphere(self.points()); BoundingSphere::new(m.transform(¢er), radius) } }