Struct ZeroHeapNavMesh
pub struct ZeroHeapNavMesh {
pub node_count: usize,
pub polygons: [NavPolygon; 128],
}Expand description
Zero-heap navigation mesh container.
Fields§
§node_count: usizeNumber of active polygons in the mesh.
polygons: [NavPolygon; 128]Fixed-capacity polygon array.
Implementations§
pub fn find_containing_polygon(&self, p: [f32; 2]) -> Option<usize>
pub fn find_containing_polygon(&self, p: [f32; 2]) -> Option<usize>
Finds the index of the polygon containing point p, or closest polygon centroid.
Trait Implementations§
§fn clone(&self) -> ZeroHeapNavMesh
fn clone(&self) -> ZeroHeapNavMesh
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 more§fn default() -> ZeroHeapNavMesh
fn default() -> ZeroHeapNavMesh
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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