pub struct ProjectedDistanceEvidence { /* private fields */ }Expand description
The distance between two bodies in a request’s projection, as an interval.
(lower, upper) in metres, both equal for exact geometry. An upper bound
of infinity says the bodies may be unrelated in the projection (not above
one another, not overlapping in plan); a lower bound of infinity says they
are. Only ProximityProjection::may_be_unrelated projections may report
an infinite bound, and exact evidence is a point: whether exact bodies are
related is decided, never left open.
Implementations§
Source§impl ProjectedDistanceEvidence
impl ProjectedDistanceEvidence
Sourcepub fn try_new(
request: ProximityRequest,
lower_metres: f64,
upper_metres: f64,
fidelity: GeometryFidelity,
evidence: Evidence,
) -> Result<Self, ProximityError>
pub fn try_new( request: ProximityRequest, lower_metres: f64, upper_metres: f64, fidelity: GeometryFidelity, evidence: Evidence, ) -> Result<Self, ProximityError>
Rejects incoherent intervals and evidence whose exactness does not match the geometry it was measured on.
Sourcepub fn from_proximity(
measured: &ProximityEvidence,
) -> Result<Self, ProximityError>
pub fn from_proximity( measured: &ProximityEvidence, ) -> Result<Self, ProximityError>
The distance interval of a measurement in space.
pub fn request(&self) -> &ProximityRequest
Sourcepub fn interval_metres(&self) -> (f64, f64)
pub fn interval_metres(&self) -> (f64, f64)
(lower, upper) bounds on the true distance; infinite when unrelated.
pub fn fidelity(&self) -> GeometryFidelity
pub fn evidence(&self) -> &Evidence
Trait Implementations§
Source§impl Clone for ProjectedDistanceEvidence
impl Clone for ProjectedDistanceEvidence
Source§impl Debug for ProjectedDistanceEvidence
impl Debug for ProjectedDistanceEvidence
impl StructuralPartialEq for ProjectedDistanceEvidence
Auto Trait Implementations§
impl Freeze for ProjectedDistanceEvidence
impl RefUnwindSafe for ProjectedDistanceEvidence
impl Send for ProjectedDistanceEvidence
impl Sync for ProjectedDistanceEvidence
impl Unpin for ProjectedDistanceEvidence
impl UnsafeUnpin for ProjectedDistanceEvidence
impl UnwindSafe for ProjectedDistanceEvidence
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