pub struct Aabb {
pub minimum: Vec3,
pub maximum: Vec3,
}Fields§
§minimum: Vec3§maximum: Vec3Implementations§
Source§impl Aabb
impl Aabb
pub fn separation(self, other: Aabb) -> f64
pub fn pair_scale(self, other: Aabb) -> f64
pub fn from_curve_controls(curve: &NurbsCurve) -> Result<Aabb, String>
Sourcepub fn intersects_upper(self, other: Aabb, tolerance: f64) -> bool
pub fn intersects_upper(self, other: Aabb, tolerance: f64) -> bool
Overlap with tolerance added to the upper operands (legacy intersector order).
pub fn intersects_exact(self, other: Aabb) -> bool
pub fn from_nonempty_points(points: &[Vec3]) -> Option<Aabb>
pub fn empty() -> Aabb
pub fn from_points(points: impl IntoIterator<Item = Vec3>) -> Aabb
pub fn include_point(&mut self, point: Vec3)
pub fn include(&mut self, other: Aabb)
pub fn from_surface_controls(surface: &NurbsSurface) -> Result<Aabb, String>
pub fn expanded(self, amount: f64) -> Aabb
pub fn contains(self, point: Vec3) -> bool
pub fn intersects(self, other: Aabb, tolerance: f64) -> bool
pub fn diagonal(self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Forget for Aabb
impl Freeze for Aabb
impl Move 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