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.

Implementations on Foreign Types§

Source§

impl Aabb for DVec3

Source§

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

Source§

impl<T: Aabb> Aabb for [T]

Source§

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

Source§

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

Source§

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

Implementors§