pub struct JumpPointSearch;Expand description
Online cardinal Pathfinder: Jump Point Search (4-way).
Scans jump rays at query time; weighted jump edges sum traversal_cost along the
ray. Prefer on corridor-heavy maps; open rooms limit pruning. Prefer JPS+ when many
queries share a static grid (precomputed jump table).
Implementations§
Source§impl JumpPointSearch
impl JumpPointSearch
Sourcepub fn inspect(
&self,
grid: &Grid,
request: SearchRequest,
) -> JumpPointSearchInspection
pub fn inspect( &self, grid: &Grid, request: SearchRequest, ) -> JumpPointSearchInspection
Runs an instrumented search. Invalid endpoints are reported through
JumpPointSearchInspection::result with the same errors as
Pathfinder::search.
Trait Implementations§
Source§impl Clone for JumpPointSearch
impl Clone for JumpPointSearch
Source§fn clone(&self) -> JumpPointSearch
fn clone(&self) -> JumpPointSearch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JumpPointSearch
Source§impl Debug for JumpPointSearch
impl Debug for JumpPointSearch
Source§impl Default for JumpPointSearch
impl Default for JumpPointSearch
Source§fn default() -> JumpPointSearch
fn default() -> JumpPointSearch
Returns the “default value” for a type. Read more
Source§impl Pathfinder for JumpPointSearch
impl Pathfinder for JumpPointSearch
Auto Trait Implementations§
impl Freeze for JumpPointSearch
impl RefUnwindSafe for JumpPointSearch
impl Send for JumpPointSearch
impl Sync for JumpPointSearch
impl Unpin for JumpPointSearch
impl UnsafeUnpin for JumpPointSearch
impl UnwindSafe for JumpPointSearch
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