Skip to main content

PreparedTRAStarWaypointDatabaseStatic

Struct PreparedTRAStarWaypointDatabaseStatic 

Source
pub struct PreparedTRAStarWaypointDatabaseStatic { /* private fields */ }
Expand description

Prepared TRA* with an eager per-cell portal-midpoint waypoint database.

All directed midpoints materialize at preprocess; no eviction across queries.

Implementations§

Source§

impl PreparedTRAStarWaypointDatabaseStatic

Source

pub fn builder() -> TRAStarWaypointDatabaseStaticBuilder

Returns a TRAStarWaypointDatabaseStaticBuilder for preprocess entry.

Source

pub fn prepared_tra_star(&self) -> &PreparedTRAStar

Underlying base TRA* prepared surface.

Source

pub fn waypoint_entry_count(&self) -> usize

Total directed midpoint entries in the eager waypoint database.

Source

pub fn search(&self, query: NavmeshQuery) -> NavmeshSearchResult

Routes using the static waypoint database for funnel midpoint seeds.

Trait Implementations§

Source§

impl Clone for PreparedTRAStarWaypointDatabaseStatic

Source§

fn clone(&self) -> PreparedTRAStarWaypointDatabaseStatic

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PreparedTRAStarWaypointDatabaseStatic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PreparedTRAStarWaypointDatabaseStatic

Source§

fn eq(&self, other: &PreparedTRAStarWaypointDatabaseStatic) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PreparedNavmesh for PreparedTRAStarWaypointDatabaseStatic

Source§

fn name(&self) -> &'static str

Stable prepared-map name (usually the builder name).
Source§

fn navmesh(&self) -> &Navmesh

Owned static mesh snapshot this preparation was built from.
Source§

fn neighbors(&self, cell_index: usize) -> Option<&[usize]>

Indexed neighbor cell list for cell_index, or None if out of range.
Source§

fn portals_from(&self, cell_index: usize) -> Option<&[NavmeshPortal]>

Indexed portals incident to cell_index, or None if out of range.
Source§

fn portal_between( &self, left_cell: usize, right_cell: usize, ) -> Option<NavmeshPortal>

Portal joining two cells when one was recorded at preprocess time. Read more
Source§

fn locate_point(&self, point: Point2) -> Option<usize>

First cell containing point; see Navmesh::locate_point.
Source§

fn locate_cells(&self, point: Point2) -> Vec<usize>

All cells containing point; see Navmesh::locate_cells.
Source§

fn query(&self, query: NavmeshQuery) -> NavmeshQueryResult

Cell-graph connectivity for query; see Navmesh::query.
Source§

fn cells_connected(&self, start_cell: usize, goal_cell: usize) -> bool

BFS over prepared neighbors: whether start_cell can reach goal_cell. Read more
Source§

fn materialize_corridor( &self, start: Point2, goal: Point2, cells: &[usize], ) -> Option<NavmeshCorridor>

Builds a NavmeshCorridor for a known cell sequence using the owned mesh portals. Read more
Source§

impl StructuralPartialEq for PreparedTRAStarWaypointDatabaseStatic

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.