pub struct OverlapExtents { /* private fields */ }Expand description
How far the intersection of two bodies reaches along each world axis.
Each axis carries a LengthInterval: the extent of the intersection’s
axis-aligned box along it. The lower bound is witnessed (points found in
both bodies), the upper bound proven (the bodies’ boxes overlap no
further), so exact geometry need not report a point. An empty
intersection has zero extent on every axis.
Implementations§
Source§impl OverlapExtents
impl OverlapExtents
Sourcepub fn new(x: LengthInterval, y: LengthInterval, z: LengthInterval) -> Self
pub fn new(x: LengthInterval, y: LengthInterval, z: LengthInterval) -> Self
The extents along x, y and z.
pub fn x(&self) -> LengthInterval
pub fn y(&self) -> LengthInterval
pub fn z(&self) -> LengthInterval
Sourcepub fn horizontal(&self) -> LengthInterval
pub fn horizontal(&self) -> LengthInterval
The lesser of the x and y extents: how far the intersection reaches in plan along its narrower axis.
Sourcepub fn vertical(&self) -> LengthInterval
pub fn vertical(&self) -> LengthInterval
The z extent.
Trait Implementations§
Source§impl Clone for OverlapExtents
impl Clone for OverlapExtents
impl Copy for OverlapExtents
Source§impl Debug for OverlapExtents
impl Debug for OverlapExtents
Source§impl PartialEq for OverlapExtents
impl PartialEq for OverlapExtents
impl StructuralPartialEq for OverlapExtents
Auto Trait Implementations§
impl Freeze for OverlapExtents
impl RefUnwindSafe for OverlapExtents
impl Send for OverlapExtents
impl Sync for OverlapExtents
impl Unpin for OverlapExtents
impl UnsafeUnpin for OverlapExtents
impl UnwindSafe for OverlapExtents
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