use na::Translate; use na; use bounding_volume::{HasBoundingVolume, BoundingSphere}; use shape::Ball; use math::{Point, Vector}; impl HasBoundingVolume> for Ball<::Scalar> where P: Point, M: Translate

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

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