pub struct BBox { /* private fields */ }Expand description
Bounding Box.
A wrapper around an array of 6 values: [minx, miny, minz, maxx, maxy, maxz].
§Examples
let bbox = BBox::new(84710.1, 446846.0, -5.3, 84757.1, 446944.0, 40.9);
let bbox_height = bbox.height();Implementations§
Source§impl BBox
impl BBox
pub fn new( min_x: f64, min_y: f64, min_z: f64, max_x: f64, max_y: f64, max_z: f64, ) -> Self
pub fn as_slice(&self) -> &[f64]
pub fn min_x(&self) -> f64
pub fn min_y(&self) -> f64
pub fn min_z(&self) -> f64
pub fn max_x(&self) -> f64
pub fn max_y(&self) -> f64
pub fn max_z(&self) -> f64
Trait Implementations§
impl Copy for BBox
impl StructuralPartialEq for BBox
Auto Trait Implementations§
impl Freeze for BBox
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin for BBox
impl UnsafeUnpin for BBox
impl UnwindSafe for BBox
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