Trait bevy::math::bounding::Bounded3d

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§

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

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

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

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

Implementors§