bevy_math::bounding

Trait Bounded3d

source
pub trait Bounded3d {
    // Required methods
    fn aabb_3d(&self, isometry: impl Into<Isometry3d>) -> Aabb3d;
    fn bounding_sphere(&self, isometry: impl Into<Isometry3d>) -> BoundingSphere;
}
Expand description

A trait with methods that return 3D bounding volumes for a shape.

Required Methods§

source

fn aabb_3d(&self, isometry: impl Into<Isometry3d>) -> Aabb3d

Get an axis-aligned bounding box for the shape translated and rotated by the given isometry.

source

fn bounding_sphere(&self, isometry: impl Into<Isometry3d>) -> BoundingSphere

Get a bounding sphere for the shape translated and rotated by the given isometry.

Object Safety§

This trait is not object safe.

Implementors§