pub struct Bounds {
pub min_x: f64,
pub min_y: f64,
pub min_z: f64,
pub max_x: f64,
pub max_y: f64,
pub max_z: f64,
}
Expand description
3D bounding box
Fields§
§min_x: f64
§min_y: f64
§min_z: f64
§max_x: f64
§max_y: f64
§max_z: f64
Implementations§
source§impl Bounds
impl Bounds
pub fn new( min_x: f64, min_y: f64, min_z: f64, max_x: f64, max_y: f64, max_z: f64 ) -> Bounds
pub fn reset(&mut self)
pub fn sum(a: Bounds, b: &Bounds) -> Bounds
pub fn expand(&mut self, r: &Bounds)
pub fn expand_xyz(&mut self, x: f64, y: f64, z: f64)
pub fn intersects(&self, r: &Bounds) -> bool
Trait Implementations§
source§impl PartialEq<Bounds> for Bounds
impl PartialEq<Bounds> for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnwindSafe for Bounds
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