pub struct AABB3D { /* private fields */ }Expand description
A 3D axis-aligned bounding box defined by its minimum and maximum corners.
Implementations§
Source§impl AABB3D
Implements methods for AABB3D.
impl AABB3D
Implements methods for AABB3D.
Sourcepub fn size(&self) -> Vector3D
pub fn size(&self) -> Vector3D
Returns the dimensions of the bounding box as a vector.
§Returns
Vector3D- The size vector (width, height, depth).
Source§impl AABB3D
impl AABB3D
pub fn get_min(&self) -> Vector3D
pub fn get_mut_min(&mut self) -> &mut Vector3D
pub fn set_min(&mut self, val: Vector3D) -> &mut Self
pub fn get_max(&self) -> Vector3D
pub fn get_mut_max(&mut self) -> &mut Vector3D
pub fn set_max(&mut self, val: Vector3D) -> &mut Self
Trait Implementations§
impl Copy for AABB3D
Source§impl PartialOrd for AABB3D
impl PartialOrd for AABB3D
impl StructuralPartialEq for AABB3D
Auto Trait Implementations§
impl Freeze for AABB3D
impl RefUnwindSafe for AABB3D
impl Send for AABB3D
impl Sync for AABB3D
impl Unpin for AABB3D
impl UnsafeUnpin for AABB3D
impl UnwindSafe for AABB3D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more