pub struct WalkableStretch { /* private fields */ }Expand description
Where, inside one walkable surface, a body of the request’s width cannot pass, and why.
The backend proves the passage it marks too narrow; the position only locates it for a reviewer (where the parts it separates come closest, in the model’s coordinates, at the floor’s elevation) and is never a measurement. The obstacles are those found there that the limit depends on, possibly none.
Implementations§
Source§impl WalkableStretch
impl WalkableStretch
Sourcepub fn try_new(
surface: ObjectId,
limit: StretchLimit,
at: [f64; 3],
obstacles: Vec<ObjectId>,
) -> Result<Self, WalkabilityError>
pub fn try_new( surface: ObjectId, limit: StretchLimit, at: [f64; 3], obstacles: Vec<ObjectId>, ) -> Result<Self, WalkabilityError>
A stretch of surface at at.
§Errors
WalkabilityError::InvalidStretch when a coordinate is not finite.
Sourcepub fn with_headroom(
self,
headroom: LengthInterval,
) -> Result<Self, WalkabilityError>
pub fn with_headroom( self, headroom: LengthInterval, ) -> Result<Self, WalkabilityError>
The headroom the obstacles of a StretchLimit::Low stretch leave
above the floor.
§Errors
WalkabilityError::InvalidStretch for any other limit.
pub fn surface(&self) -> &ObjectId
pub fn limit(&self) -> StretchLimit
Sourcepub fn at(&self) -> [f64; 3]
pub fn at(&self) -> [f64; 3]
Where the stretch lies: plan position and floor elevation, metres.
Sourcepub fn obstacles(&self) -> &[ObjectId]
pub fn obstacles(&self) -> &[ObjectId]
The obstacles (or swept doors) the limit depends on, sorted.
pub fn headroom(&self) -> Option<LengthInterval>
Trait Implementations§
Source§impl Clone for WalkableStretch
impl Clone for WalkableStretch
Source§impl Debug for WalkableStretch
impl Debug for WalkableStretch
Source§impl PartialEq for WalkableStretch
impl PartialEq for WalkableStretch
impl StructuralPartialEq for WalkableStretch
Auto Trait Implementations§
impl Freeze for WalkableStretch
impl RefUnwindSafe for WalkableStretch
impl Send for WalkableStretch
impl Sync for WalkableStretch
impl Unpin for WalkableStretch
impl UnsafeUnpin for WalkableStretch
impl UnwindSafe for WalkableStretch
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