bevy_math::bounding

Trait 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§