#[non_exhaustive]pub struct ForcedWalk {
pub length: LengthInterval,
pub shortest: f64,
pub witness: Option<DVec2>,
pub converged: bool,
pub cells: usize,
}Expand description
The shortest walk from an origin to a target that enters a polygon.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.length: LengthIntervalContains the length of the shortest walk that enters the polygon. Both ends are infinite when no walk from an origin to a target reaches the polygon.
shortest: f64The shortest walk from any origin to any target, ignoring the
polygon: length.lower is never below it, up to rounding. Infinite
when no target is reachable from an origin.
witness: Option<DVec2>A point of the polygon, in the free space, through which a walk of
at most length.upper passes; None when no walk reaches the
polygon.
converged: boolWhether the interval is no wider than the tolerance asked for. When the cell budget runs out first it is still sound, only wider.
cells: usizeCells examined.
Trait Implementations§
Source§impl Clone for ForcedWalk
impl Clone for ForcedWalk
Source§fn clone(&self) -> ForcedWalk
fn clone(&self) -> ForcedWalk
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForcedWalk
impl Debug for ForcedWalk
Source§impl PartialEq for ForcedWalk
impl PartialEq for ForcedWalk
impl Copy for ForcedWalk
impl StructuralPartialEq for ForcedWalk
Auto Trait Implementations§
impl Freeze for ForcedWalk
impl RefUnwindSafe for ForcedWalk
impl Send for ForcedWalk
impl Sync for ForcedWalk
impl Unpin for ForcedWalk
impl UnwindSafe for ForcedWalk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more