pub struct Node {
pub poly: PolyRef,
pub parent: Option<usize>,
pub g: f32,
pub h: f32,
pub f: f32,
pub state: NodeState,
pub index: usize,
}Expand description
Node in the A* search algorithm
Fields§
§poly: PolyRefPolygon reference
parent: Option<usize>Parent node
g: f32Cost from start to this node
h: f32Estimated cost from this node to goal
f: f32Total cost (g + h)
state: NodeStateState of the node in the search
index: usizeIndex in the node pool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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