use na::Transform; use bounding_volume::{BoundingSphere, HasBoundingVolume}; use bounding_volume; use shape::Segment; use math::Point; impl
HasBoundingVolume
where P: Point,
M: Transform {
#[inline]
fn bounding_volume(&self, m: &M) -> BoundingSphere {
let pts = [ self.a().clone(), self.b().clone() ];
let (center, radius) = bounding_volume::point_cloud_bounding_sphere(&pts[..]);
BoundingSphere::new(m.transform(¢er), radius)
}
}