Skip to main content

Aabb

Trait Aabb 

Source
pub trait Aabb {
    // Required method
    fn aabb(&self) -> [DVec3; 2];

    // Provided methods
    fn aabb_size(&self) -> DVec3 { ... }
    fn aabb_center(&self) -> DVec3 { ... }
}
Expand description

Axis-Aligned Bounding Box

This is the basic trait for an item.

Required Methods§

Source

fn aabb(&self) -> [DVec3; 2]

Get the Axis-aligned bounding box represent in [<min>, <max>].

Provided Methods§

Source

fn aabb_size(&self) -> DVec3

Get the size of the Aabb.

Source

fn aabb_center(&self) -> DVec3

Get the center of the Aabb.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Aabb for DVec3

Source§

fn aabb(&self) -> [DVec3; 2]

Source§

impl<T: Aabb> Aabb for Vec<T>

Source§

fn aabb(&self) -> [DVec3; 2]

Source§

impl<T: Aabb> Aabb for [T]

Source§

fn aabb(&self) -> [DVec3; 2]

Implementors§

Source§

impl Aabb for VPointVec

Source§

impl<T, G> Aabb for Transformed<T, G>
where T: Aabb, G: Clone + Into<DAffine3>,