pub struct Path {
pub poly_refs: Vec<PolyRef>,
pub waypoints: Vec<Vec3>,
}Expand description
A path result from a pathfinding query
Fields§
§poly_refs: Vec<PolyRef>Polygon references along the path
waypoints: Vec<Vec3>Waypoints along the path
Implementations§
Source§impl Path
impl Path
Sourcepub fn poly_count(&self) -> usize
pub fn poly_count(&self) -> usize
Returns the number of polygons in the path
Sourcepub fn waypoint_count(&self) -> usize
pub fn waypoint_count(&self) -> usize
Returns the number of waypoints in the path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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