pub trait Bounded3d {
// Required methods
fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d;
fn bounding_sphere(
&self,
translation: Vec3,
rotation: Quat
) -> BoundingSphere;
}
Expand description
A trait with methods that return 3D bounded volumes for a shape
Required Methods§
sourcefn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
Get an axis-aligned bounding box for the shape with the given translation and rotation
sourcefn bounding_sphere(&self, translation: Vec3, rotation: Quat) -> BoundingSphere
fn bounding_sphere(&self, translation: Vec3, rotation: Quat) -> BoundingSphere
Get a bounding sphere for the shape with the given translation and rotation