pub struct CirculationNode { /* private fields */ }Expand description
One skeleton node.
Implementations§
Source§impl CirculationNode
impl CirculationNode
Sourcepub fn try_new(
point: [f64; 3],
kind: CirculationNodeKind,
piece: usize,
half_width: LengthInterval,
) -> Result<Self, FreeSpaceError>
pub fn try_new( point: [f64; 3], kind: CirculationNodeKind, piece: usize, half_width: LengthInterval, ) -> Result<Self, FreeSpaceError>
A node at point (on the floor), in piece, whose distance to the
nearest wall or obstacle of the free area lies in half_width.
§Errors
FreeSpaceError::Unavailable for a coordinate that is not finite.
Sourcepub fn point(&self) -> [f64; 3]
pub fn point(&self) -> [f64; 3]
Where it is, on the floor, in metres. Approximate: the node lies in its piece, but how close it is to the piece’s middle is not proven.
Sourcepub fn kind(&self) -> CirculationNodeKind
pub fn kind(&self) -> CirculationNodeKind
Its kind.
Sourcepub fn half_width(&self) -> LengthInterval
pub fn half_width(&self) -> LengthInterval
Proven bounds on its distance to the free area’s boundary: half the width of the free area around it.
Trait Implementations§
Source§impl Clone for CirculationNode
impl Clone for CirculationNode
Source§impl Debug for CirculationNode
impl Debug for CirculationNode
Source§impl PartialEq for CirculationNode
impl PartialEq for CirculationNode
impl StructuralPartialEq for CirculationNode
Auto Trait Implementations§
impl Freeze for CirculationNode
impl RefUnwindSafe for CirculationNode
impl Send for CirculationNode
impl Sync for CirculationNode
impl Unpin for CirculationNode
impl UnsafeUnpin for CirculationNode
impl UnwindSafe for CirculationNode
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