pub struct CorridorEnd { /* private fields */ }Expand description
One end of a path through the footprint.
Implementations§
Source§impl CorridorEnd
impl CorridorEnd
Sourcepub fn try_new(
point: [f64; 2],
clearance: (f64, f64),
wall: EndWall,
) -> Result<Self, PlanSpanError>
pub fn try_new( point: [f64; 2], clearance: (f64, f64), wall: EndWall, ) -> Result<Self, PlanSpanError>
An end at point (inside the footprint), whose distance to the
nearest wall lies in clearance, running into wall.
Sourcepub fn point(&self) -> [f64; 2]
pub fn point(&self) -> [f64; 2]
Where the path ends, in canonical metres: inside the footprint, but an approximation of where the true axis ends.
Sourcepub fn clearance_metres(&self) -> (f64, f64)
pub fn clearance_metres(&self) -> (f64, f64)
Bounds (lower, upper) on the distance from Self::point to the
nearest wall, sure to hold the true value.
Trait Implementations§
Source§impl Clone for CorridorEnd
impl Clone for CorridorEnd
Source§impl Debug for CorridorEnd
impl Debug for CorridorEnd
Source§impl PartialEq for CorridorEnd
impl PartialEq for CorridorEnd
impl StructuralPartialEq for CorridorEnd
Auto Trait Implementations§
impl Freeze for CorridorEnd
impl RefUnwindSafe for CorridorEnd
impl Send for CorridorEnd
impl Sync for CorridorEnd
impl Unpin for CorridorEnd
impl UnsafeUnpin for CorridorEnd
impl UnwindSafe for CorridorEnd
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