pub struct AABB {
pub orientation: Orientation,
/* private fields */
}
Fields§
§orientation: Orientation
Implementations§
Source§impl AABB
impl AABB
pub fn new(x1: f64, y1: f64, z1: f64, x2: f64, y2: f64, z2: f64) -> Self
pub fn with_orientation(self, orientation: Orientation) -> Self
pub fn slice(self, plane: Plane) -> Vec<Self>
pub fn explode(self, center: (f64, f64, f64)) -> Vec<Self>
pub fn fit_in(&self, depth: u32, max_depth: u32) -> bool
pub fn offset(self, offset: (f64, f64, f64)) -> Self
pub fn normalize(self) -> Self
pub fn normalize_with(self, normalization_vector: (f64, f64, f64)) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AABB
impl RefUnwindSafe for AABB
impl Send for AABB
impl Sync for AABB
impl Unpin for AABB
impl UnwindSafe for AABB
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