pub struct Bounds {
pub min: (f64, f64, f64),
pub max: (f64, f64, f64),
}Expand description
Axis-aligned XYZ bounds.
Fields§
§min: (f64, f64, f64)§max: (f64, f64, f64)Implementations§
Source§impl Bounds
impl Bounds
pub fn new(min: (f64, f64, f64), max: (f64, f64, f64)) -> Self
pub fn point(x: f64, y: f64, z: f64) -> Self
pub fn cube(center: (f64, f64, f64), halfsize: f64) -> Self
pub fn extend(&mut self, x: f64, y: f64, z: f64)
pub fn center(self) -> (f64, f64, f64)
pub fn octant(self, octant: u8) -> Self
pub fn intersects(self, other: Self) -> bool
pub fn contains_xyz(self, x: f64, y: f64, z: f64) -> bool
Trait Implementations§
impl Copy for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin 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