pub struct LandingEvidence { /* private fields */ }Expand description
The landing at one end of a flight or run.
direction is the horizontal direction leaving the subject at that end
(back down the flight’s direction at its bottom, on at its top); edge
the position along it of the end’s arrival line: the first riser at a
flight’s bottom, the last riser at its top, a run’s end. A landing’s
positions are along the same direction, so its depth is its far side
less the edge. landing is None when no candidate’s level surface at
the end’s elevation meets the end: nothing selected carries it.
Implementations§
Source§impl LandingEvidence
impl LandingEvidence
Sourcepub fn try_new(
request: LandingRequest,
direction: MetricDirection,
edge: ElevationInterval,
landing: Option<Landing>,
evidence: Evidence,
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( request: LandingRequest, direction: MetricDirection, edge: ElevationInterval, landing: Option<Landing>, evidence: Evidence, ) -> Result<Self, WalkingSurfaceError>
The landing answering request. The carrier must be the subject or a
requested candidate, and a measured landing’s far side must lie
decidably beyond the edge; the evidence is exact exactly when every
position is a point.
Sourcepub fn request(&self) -> &LandingRequest
pub fn request(&self) -> &LandingRequest
The request this answers.
Sourcepub fn direction(&self) -> MetricDirection
pub fn direction(&self) -> MetricDirection
The horizontal direction leaving the subject at the end.
Sourcepub fn edge(&self) -> ElevationInterval
pub fn edge(&self) -> ElevationInterval
Position of the end’s arrival line along the leaving direction.
Sourcepub fn landing(&self) -> Option<&Landing>
pub fn landing(&self) -> Option<&Landing>
The landing, or None when nothing requested carries one.
Sourcepub fn depth(&self) -> Option<MeasuredInterval>
pub fn depth(&self) -> Option<MeasuredInterval>
The landing’s depth along the leaving direction, from the arrival line to its far side, when its extent was measured.
Sourcepub fn width(&self) -> Option<MeasuredInterval>
pub fn width(&self) -> Option<MeasuredInterval>
The landing’s width across the leaving direction, when its extent was measured.