pub enum BoundingVolume {
Box([f64; 12]),
}Expand description
Bounding volume for a tile.
Variants§
Box([f64; 12])
Right-handed axis-aligned box: [center(3), x-half-axis(3), y-half-axis(3), z-half-axis(3)].
Implementations§
Source§impl BoundingVolume
impl BoundingVolume
Sourcepub fn box_from_bounds(min: [f64; 3], max: [f64; 3]) -> InterchangeResult<Self>
pub fn box_from_bounds(min: [f64; 3], max: [f64; 3]) -> InterchangeResult<Self>
Creates an axis-aligned box from ordered min/max corners.
Trait Implementations§
Source§impl Clone for BoundingVolume
impl Clone for BoundingVolume
Source§fn clone(&self) -> BoundingVolume
fn clone(&self) -> BoundingVolume
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 BoundingVolume
impl Debug for BoundingVolume
Source§impl PartialEq for BoundingVolume
impl PartialEq for BoundingVolume
Source§fn eq(&self, other: &BoundingVolume) -> bool
fn eq(&self, other: &BoundingVolume) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoundingVolume
Auto Trait Implementations§
impl Freeze for BoundingVolume
impl RefUnwindSafe for BoundingVolume
impl Send for BoundingVolume
impl Sync for BoundingVolume
impl Unpin for BoundingVolume
impl UnsafeUnpin for BoundingVolume
impl UnwindSafe for BoundingVolume
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