pub struct BBox { /* private fields */ }
Expand description
Single-precision bounding box
Implementations
sourceimpl BBox
impl BBox
sourcepub fn collide_bcube(&self, bcube: BCube) -> bool
pub fn collide_bcube(&self, bcube: BCube) -> bool
Check if BBox
collides with BCube
.
sourcepub fn collide_vec3(&self, p: Vector) -> bool
pub fn collide_vec3(&self, p: Vector) -> bool
Check if BBox
collides with point p
.
sourcepub fn all_points(&self) -> [Vector; 8]
pub fn all_points(&self) -> [Vector; 8]
Get all 8 points of the BBox
.
sourcepub fn side_points(&self) -> [Vector; 6]
pub fn side_points(&self) -> [Vector; 6]
Get all 6 sides of the BBox
as points.
Trait Implementations
impl Copy for BBox
Auto Trait Implementations
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin for BBox
impl UnwindSafe for BBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more