pub struct NavigationContext { /* private fields */ }
Expand description

Contains the graph and edges necessary for path finding

Implementations

Creates a new navigation context

Creates a new navigation context. Shuffles the input which usually reduces the depth of the final tree.

Locate a position in the tree. Return None if there are no faces in the scene

Get a reference to the navigation context’s tree.

Get a reference to the navigation context’s portals.

Get the portals associated to a node

Find a path from start to end Returns None if no path was found. If there are no faces in the scene, a straight path will be returned.

Find a path from start to end Returns None if no path was found. If there are no faces in the scene, a straight path will be returned. Uses an already allocated path to fill and will attempt to only update parts of the path

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.