pub struct Aabb {
pub min: Vec3,
pub max: Vec3,
}Fields§
§min: Vec3§max: Vec3Implementations§
Source§impl Aabb
impl Aabb
pub fn empty() -> Self
pub fn expand(&mut self, point: Vec3)
Sourcepub fn from_transformed_aabb(local: &Aabb, transform: &Affine3A) -> Aabb
pub fn from_transformed_aabb(local: &Aabb, transform: &Affine3A) -> Aabb
Compute the AABB of a transformed AABB (uses the 8 corner approach).
pub fn center(&self) -> Vec3
pub fn extents(&self) -> Vec3
pub fn diagonal(&self) -> f32
pub fn is_valid(&self) -> bool
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 UnsafeUnpin 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