pub struct Aabb {
pub min: Point3,
pub max: Point3,
}Expand description
Axis-aligned three-dimensional bounding box.
Fields§
§min: Point3Minimum corner.
max: Point3Maximum corner.
Implementations§
Source§impl Aabb
impl Aabb
Sourcepub const fn from_point(point: Point3) -> Self
pub const fn from_point(point: Point3) -> Self
Construct a non-empty box containing exactly one point.
Sourcepub fn intersects(&self, other: &Self) -> bool
pub fn intersects(&self, other: &Self) -> bool
Whether the boxes overlap. Touching counts as overlap.
Trait Implementations§
impl Copy for Aabb
impl StructuralPartialEq for Aabb
Auto Trait Implementations§
impl Freeze for Aabb
impl RefUnwindSafe for Aabb
impl Send for Aabb
impl Sync for Aabb
impl Unpin for Aabb
impl UnwindSafe for Aabb
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