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

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

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