1 2 3 4 5 6 7 8 9 10 11
use crate::bounding_volume::{BoundingSphere, HasBoundingVolume}; use crate::math::Isometry; use na::RealField; use crate::shape::Shape; impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Shape<N> { #[inline] fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N> { self.bounding_sphere(m) } }