use bounding_volume::{BoundingSphere, HasBoundingVolume}; use shape::Ball; use math::{Isometry, Point}; impl> HasBoundingVolume> for Ball { #[inline] fn bounding_volume(&self, m: &M) -> BoundingSphere

{ let center = m.translate_point(&P::origin()); let radius = self.radius(); BoundingSphere::new(center, radius) } }