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

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

{ let pts = [*self.a(), *self.b()]; let (center, radius) = bounding_volume::point_cloud_bounding_sphere(&pts[..]); BoundingSphere::new(m.transform_point(¢er), radius) } }