use na::{Rotate, Transform}; use bounding_volume::{HasBoundingVolume, AABB}; use bounding_volume; use shape::{Cone, Cylinder, Capsule}; use shape::{Triangle, Segment}; use math::{Point, Vector}; impl HasBoundingVolume> for Cone<::Scalar> where P: Point, M: Transform

+ Rotate { #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ bounding_volume::implicit_shape_aabb(m, self) } } impl HasBoundingVolume> for Cylinder<::Scalar> where P: Point, M: Transform

+ Rotate { #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ bounding_volume::implicit_shape_aabb(m, self) } } impl HasBoundingVolume> for Capsule<::Scalar> where P: Point, M: Transform

+ Rotate { #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ bounding_volume::implicit_shape_aabb(m, self) } } impl HasBoundingVolume> for Triangle

where P: Point, M: Transform

+ Rotate { #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ // FIXME: optimize that bounding_volume::implicit_shape_aabb(m, self) } } impl HasBoundingVolume> for Segment

where P: Point, M: Transform

+ Rotate { #[inline] fn bounding_volume(&self, m: &M) -> AABB

{ // FIXME: optimize that bounding_volume::implicit_shape_aabb(m, self) } }