pub struct FaceDistanceEvidence { /* private fields */ }Expand description
The signed distance from a body to a class of a host body’s faces.
With F the host’s faces of the class, each point p of the body has
the signed distance +d(p, F) when it lies in the host (boundary
included) and -d(p, F) when it lies outside. The body’s distance is the
least over its points:
- positive: the whole body lies in the host, that far from the faces (a cover);
- negative: part of the body lies outside the host, the farthest of it that far from the faces (a protrusion);
- zero: the body reaches the faces.
It is a SignedDistanceInterval sure to contain the true value, a
point only when the measurement proves one.
Implementations§
Source§impl FaceDistanceEvidence
impl FaceDistanceEvidence
Sourcepub fn try_new(
request: FaceDistanceRequest,
signed: SignedDistanceInterval,
fidelity: GeometryFidelity,
evidence: Evidence,
) -> Result<Self, FaceDistanceError>
pub fn try_new( request: FaceDistanceRequest, signed: SignedDistanceInterval, fidelity: GeometryFidelity, evidence: Evidence, ) -> Result<Self, FaceDistanceError>
Rejects evidence whose exactness does not match the geometry it was measured on.
pub fn request(&self) -> &FaceDistanceRequest
Sourcepub fn signed(&self) -> SignedDistanceInterval
pub fn signed(&self) -> SignedDistanceInterval
Bounds on the signed distance: positive inside the host, negative outside.
pub fn fidelity(&self) -> GeometryFidelity
pub fn evidence(&self) -> &Evidence
Trait Implementations§
Source§impl Clone for FaceDistanceEvidence
impl Clone for FaceDistanceEvidence
Source§impl Debug for FaceDistanceEvidence
impl Debug for FaceDistanceEvidence
Source§impl PartialEq for FaceDistanceEvidence
impl PartialEq for FaceDistanceEvidence
impl StructuralPartialEq for FaceDistanceEvidence
Auto Trait Implementations§
impl Freeze for FaceDistanceEvidence
impl RefUnwindSafe for FaceDistanceEvidence
impl Send for FaceDistanceEvidence
impl Sync for FaceDistanceEvidence
impl Unpin for FaceDistanceEvidence
impl UnsafeUnpin for FaceDistanceEvidence
impl UnwindSafe for FaceDistanceEvidence
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