use na::Translate; use na; use bounding_volume::{HasBoundingVolume, BoundingSphere}; use shape::Ball; use math::{Point, Vector}; impl
HasBoundingVolume {
#[inline]
fn bounding_volume(&self, m: &M) -> BoundingSphere {
let center = m.translate(&na::origin());
let radius = self.radius();
BoundingSphere::new(center, radius)
}
}