pub struct PathNode {
pub pos: Vec2,
pub g_cost: f32,
pub h_cost: f32,
pub f_cost: f32,
pub parent: Option<usize>,
}Expand description
A single node used internally during A* search.
Fields§
§pos: Vec2§g_cost: f32§h_cost: f32§f_cost: f32§parent: Option<usize>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathNode
impl RefUnwindSafe for PathNode
impl Send for PathNode
impl Sync for PathNode
impl Unpin for PathNode
impl UnsafeUnpin for PathNode
impl UnwindSafe for PathNode
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