ncollide3d/bounding_volume/bounding_sphere_shape.rs
use crate::bounding_volume::{BoundingSphere, HasBoundingVolume};
use crate::math::Isometry;
use crate::shape::Shape;
use na::RealField;
impl<N: RealField + Copy> HasBoundingVolume<N, BoundingSphere<N>> for dyn Shape<N> {
#[inline]
fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N> {
self.bounding_sphere(m)
}
#[inline]
fn local_bounding_volume(&self) -> BoundingSphere<N> {
self.local_bounding_sphere()
}
}