pub struct OverlapAlongEvidence { /* private fields */ }Expand description
How far two bodies’ intersection reaches along each direction of an
OverlapAlongRequest.
Each extent is a LengthInterval as for OverlapExtents: its lower
bound witnessed (points found in both bodies), its upper bound proven
(the bodies’ own extents along the direction overlap no further). An
empty intersection has zero extent along every direction. The evidence
is exact exactly when the geometry is.
Implementations§
Source§impl OverlapAlongEvidence
impl OverlapAlongEvidence
Sourcepub fn try_new(
request: OverlapAlongRequest,
extents: Vec<LengthInterval>,
fidelity: GeometryFidelity,
evidence: Evidence,
) -> Result<Self, ProximityError>
pub fn try_new( request: OverlapAlongRequest, extents: Vec<LengthInterval>, fidelity: GeometryFidelity, evidence: Evidence, ) -> Result<Self, ProximityError>
Refuses one extent too many or too few, and evidence whose exactness does not match the geometry.
pub fn request(&self) -> &OverlapAlongRequest
Sourcepub fn extents(&self) -> &[LengthInterval]
pub fn extents(&self) -> &[LengthInterval]
The extent along each requested direction, in request order.
pub fn fidelity(&self) -> GeometryFidelity
pub fn evidence(&self) -> &Evidence
Trait Implementations§
Source§impl Clone for OverlapAlongEvidence
impl Clone for OverlapAlongEvidence
Source§impl Debug for OverlapAlongEvidence
impl Debug for OverlapAlongEvidence
Source§impl PartialEq for OverlapAlongEvidence
impl PartialEq for OverlapAlongEvidence
impl StructuralPartialEq for OverlapAlongEvidence
Auto Trait Implementations§
impl Freeze for OverlapAlongEvidence
impl RefUnwindSafe for OverlapAlongEvidence
impl Send for OverlapAlongEvidence
impl Sync for OverlapAlongEvidence
impl Unpin for OverlapAlongEvidence
impl UnsafeUnpin for OverlapAlongEvidence
impl UnwindSafe for OverlapAlongEvidence
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