pub struct BoundingBox {
pub min_x: f32,
pub max_x: f32,
pub min_y: f32,
pub max_y: f32,
pub min_z: f32,
pub max_z: f32,
}Expand description
Bounding box for 3D spatial queries.
Fields§
§min_x: f32§max_x: f32§min_y: f32§max_y: f32§min_z: f32§max_z: f32Implementations§
Source§impl BoundingBox
impl BoundingBox
pub fn new( min_x: f32, max_x: f32, min_y: f32, max_y: f32, min_z: f32, max_z: f32, ) -> Self
pub fn from_node(node: &NodeRec) -> Self
pub fn expand(&mut self, other: &BoundingBox)
pub fn intersects(&self, other: &BoundingBox) -> bool
pub fn contains_point(&self, x: f32, y: f32, z: f32) -> bool
Trait Implementations§
Source§impl Clone for BoundingBox
impl Clone for BoundingBox
Source§fn clone(&self) -> BoundingBox
fn clone(&self) -> BoundingBox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoundingBox
impl Debug for BoundingBox
Source§impl PartialEq for BoundingBox
impl PartialEq for BoundingBox
Source§fn eq(&self, other: &BoundingBox) -> bool
fn eq(&self, other: &BoundingBox) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BoundingBox
impl StructuralPartialEq for BoundingBox
Auto Trait Implementations§
impl Freeze for BoundingBox
impl RefUnwindSafe for BoundingBox
impl Send for BoundingBox
impl Sync for BoundingBox
impl Unpin for BoundingBox
impl UnsafeUnpin for BoundingBox
impl UnwindSafe for BoundingBox
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