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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<I, G> Aabb for Node<I, G>
impl<I, G> Aabb for Node<I, G>
Source§fn aabb(&self) -> [DVec3; 2]
fn aabb(&self) -> [DVec3; 2]
Union of the payload’s and the placed children’s AABBs — each placement’s wrapper already applies its own pose, so the result is in the receiver’s local frame. A node with no payload and no children warns and reports a degenerate box, mirroring the slice impl in ranim-core.