use na::{Transform, Rotate}; use support_map::SupportMap; use support_map; use shape::ConvexHull; use math::Point; impl SupportMap for ConvexHull

where P: Point, M: Transform

+ Rotate { #[inline] fn support_point(&self, m: &M, dir: &P::Vect) -> P { let local_dir = m.inverse_rotate(dir); let best_pt = support_map::point_cloud_support_point(&local_dir, self.points()); m.transform(&best_pt) } }