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

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