use na::{Translation, AbsoluteRotate, Transform, Translate}; use na; use bounding_volume::{AABB, HasBoundingVolume}; use shape::Compound; use math::{Point, Vector}; impl
HasBoundingVolume
where P: Point,
P::Vect: Translate ,
M2: Transform + AbsoluteRotate {
let bv = self.bvt().root_bounding_volume().unwrap();
let ls_center = na::origin:: () + bv.translation();
let center = m.transform(&ls_center);
let half_extents = (*bv.maxs() - *bv.mins()) / na::cast::