pub struct BCube { /* private fields */ }
Expand description
Single-precision bounding cube
Implementations
sourceimpl BCube
impl BCube
sourcepub fn to_point_pair(&self) -> (Vector, Vector)
pub fn to_point_pair(&self) -> (Vector, Vector)
Get two opposite points that are the bounds of the BCube.
sourcepub fn all_points(&self) -> [Vector; 7]
pub fn all_points(&self) -> [Vector; 7]
Get all 6 points or the BCube
.
sourcepub fn pn_pair_from_normal(&self, normal: Vector) -> (Vector, Vector)
pub fn pn_pair_from_normal(&self, normal: Vector) -> (Vector, Vector)
Get a positive and negative pair of opposite points that are the bounds of the BCube, based around a normal.
Trait Implementations
impl Copy for BCube
impl StructuralPartialEq for BCube
Auto Trait Implementations
impl RefUnwindSafe for BCube
impl Send for BCube
impl Sync for BCube
impl Unpin for BCube
impl UnwindSafe for BCube
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