pub struct ContinuousPath {
pub waypoints: Vec<(f64, f64)>,
pub cost: f64,
}Expand description
Result of a continuous-space A* search.
Fields§
§waypoints: Vec<(f64, f64)>Waypoints in continuous coordinates, from (near) start to goal. The first waypoint is NOT the start position – it is the first cell center the agent should walk toward. The last waypoint is the exact goal position.
cost: f64Approximate total cost (from the underlying grid A*).
Trait Implementations§
Source§impl Clone for ContinuousPath
impl Clone for ContinuousPath
Source§fn clone(&self) -> ContinuousPath
fn clone(&self) -> ContinuousPath
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ContinuousPath
impl RefUnwindSafe for ContinuousPath
impl Send for ContinuousPath
impl Sync for ContinuousPath
impl Unpin for ContinuousPath
impl UnsafeUnpin for ContinuousPath
impl UnwindSafe for ContinuousPath
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