pub struct NeighborhoodGrid {
pub cell_size: f32,
pub cells: HashMap<(i32, i32), Vec<usize>>,
}Expand description
Efficient neighbor lookup for flocking using a simple spatial bucket.
Fields§
§cell_size: f32§cells: HashMap<(i32, i32), Vec<usize>>Implementations§
Auto Trait Implementations§
impl Freeze for NeighborhoodGrid
impl RefUnwindSafe for NeighborhoodGrid
impl Send for NeighborhoodGrid
impl Sync for NeighborhoodGrid
impl Unpin for NeighborhoodGrid
impl UnsafeUnpin for NeighborhoodGrid
impl UnwindSafe for NeighborhoodGrid
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