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§
Provided Methods§
Sourcefn aabb_center(&self) -> DVec3
fn aabb_center(&self) -> DVec3
Get the center of the Aabb.