Trait bevy_math::bounding::Bounded3d

source ·
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§

source

fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d

Get an axis-aligned bounding box for the shape with the given translation and rotation

source

fn bounding_sphere(&self, translation: Vec3, rotation: Quat) -> BoundingSphere

Get a bounding sphere for the shape with the given translation and rotation

Implementors§