pub struct Aabb {
pub minimum: Vec3,
pub maximum: Vec3,
}Fields§
§minimum: Vec3§maximum: Vec3Implementations§
Source§impl Aabb
impl Aabb
pub fn empty() -> Self
pub fn include_point(&mut self, point: Vec3)
pub fn include(&mut self, other: Self)
pub fn from_surface_controls(surface: &NurbsSurface) -> Result<Self, String>
pub fn expanded(self, amount: f64) -> Self
pub fn contains(self, point: Vec3) -> bool
pub fn intersects(self, other: Self, tolerance: f64) -> bool
pub fn diagonal(self) -> f64
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