MCPcopy Create free account

hub / github.com/Uriopass/flat_spatial / functions

Functions78 in github.com/Uriopass/flat_spatial

↓ 24 callersMethodx
(&self)
src/lib.rs:49
↓ 24 callersMethody
(&self)
src/lib.rs:54
↓ 17 callersFunctionblack_box
(_x: T)
examples/shapegrid.rs:26
↓ 11 callersMethodinsert
Inserts a new object with a position and an associated object Returns the unique and stable handle to be used with `get_obj`
src/grid.rs:117
↓ 10 callersMethodcell_id
(&self, pos: V2)
src/storage.rs:68
↓ 9 callersMethodcell_mut
(&mut self, pos: V2)
src/storage.rs:55
↓ 7 callersMethodll
(&self)
src/lib.rs:85
↓ 7 callersMethodur
(&self)
src/lib.rs:88
↓ 6 callersMethodcell_mut_unchecked
(&mut self, id: CellIdx)
src/storage.rs:60
↓ 5 callersMethodcell
(&self, id: CellIdx)
src/storage.rs:64
↓ 5 callersFunctioncell_range
((min_x, min_y): CellIdx, (max_x, max_y): CellIdx)
src/storage.rs:5
↓ 4 callersFunctionmaintain_shapegrid
(s: i32, iter: u64)
examples/storage_bench.rs:236
↓ 4 callersFunctionmaintain_sparsegrid
(s: i32, iter: u64)
examples/storage_bench.rs:219
↓ 4 callersFunctionquery_5_shapegrid
(g: &AABBGrid<Data, AABB>, iter: u64)
examples/storage_bench.rs:103
↓ 4 callersFunctionquery_5_sparsegrid
(g: &Grid<Data, [f32; 2]>, iter: u64)
examples/storage_bench.rs:80
↓ 4 callersFunctionquery_setup_shape
(s: i32)
examples/storage_bench.rs:67
↓ 4 callersFunctionquery_setup_sparse
(s: i32)
examples/storage_bench.rs:56
↓ 3 callersMethodget
Returns a reference to the associated object and its position, using the handle. # Example ```rust use flat_spatial::Grid; let mut g: Grid<i32, [f32;
src/grid.rs:283
↓ 3 callersMethodmaintain
Maintains the world, updating all the positions (and moving them to corresponding cells) and removing necessary objects and empty cells. Runs in linea
src/grid.rs:225
↓ 3 callersMethodquery
Queries for all objects in the cells intersecting an axis-aligned rectangle defined by lower left (ll) and upper right (ur) Try to keep the rect's wid
src/grid.rs:355
↓ 3 callersMethodremove
Lazily removes an object from the grid. This won't be taken into account until maintain() is called. # Example ```rust use flat_spatial::Grid; let mu
src/grid.rs:164
↓ 2 callersMethodcell_size
(&self)
src/storage.rs:47
↓ 2 callersFunctioncells_apply
( storage: &mut SparseStorage<AABBGridCell>, bbox: &AB, f: impl Fn(&mut AABBGridCell, bool), )
src/aabbgrid.rs:270
↓ 2 callersMethodget_mut
Returns a mutable reference to the associated object and its position, using the handle. # Example ```rust use flat_spatial::Grid; let mut g: Grid<i3
src/grid.rs:297
↓ 2 callersMethodinsert
Inserts a new object with a position and an associated object Returns the unique and stable handle to be used with `get_obj`
src/aabbgrid.rs:84
↓ 2 callersMethodintersects
(&self, b: &Self)
src/lib.rs:31
↓ 2 callersMethodis_empty
Checks if the grid contains objects or not (removals that were not confirmed with maintain() are still counted)
src/grid.rs:391
↓ 2 callersMethodlen
Returns the number of objects currently available (removals that were not confirmed with maintain() are still counted)
src/grid.rs:385
↓ 2 callersFunctionmaintain_kdtree_bulk
(iter: u64)
examples/storage_bench.rs:270
↓ 2 callersMethodmodify
(&mut self, mut f: impl FnMut(&mut T) -> bool)
src/storage.rs:51
↓ 2 callersFunctionquery_5_kdtree
(tree: &rstar::RTree<Rtreedata>, iter: u64)
examples/storage_bench.rs:129
↓ 2 callersMethodquery_around
(&self, pos: V2, radius: f32)
src/grid.rs:306
↓ 2 callersMethodquery_visitor
query_visitor is similar to query, but uses a visitor function to be slightly more performant.
src/grid.rs:365
↓ 2 callersMethodset_position
Lazily sets the position of an object (if it is not marked for deletion). This won't be taken into account until maintain() is called.
src/grid.rs:131
↓ 1 callersMethodget_mut
Returns a mutable reference to the associated object and its position, using the handle.
src/aabbgrid.rs:166
↓ 1 callersMethodhandles
Iterate over all handles
src/grid.rs:265
↓ 1 callersMethodlen
Returns the number of objects currently available
src/aabbgrid.rs:260
↓ 1 callersFunctionmaintain_kdbush_bulk
(iter: u64)
examples/storage_bench.rs:287
↓ 1 callersFunctionmaintain_kdtree_seq
(iter: u64)
examples/storage_bench.rs:257
↓ 1 callersFunctionquery_5_kdbush
(tree: &kdbush::KDBush, iter: u64)
examples/storage_bench.rs:149
↓ 1 callersFunctionquery_5_shapegrid
(g: &AABBGrid<Data, Rect<f32, ()>>, iter: u64)
examples/shapegrid.rs:31
↓ 1 callersMethodquery_aabb_visitor
(&self, ll_: V2, ur_: V2, mut visitor: impl FnMut(CellObject<V2>))
src/grid.rs:329
↓ 1 callersMethodquery_broad
Queries for all objects in the cells intersecting the given AABB
src/aabbgrid.rs:189
↓ 1 callersMethodquery_broad_visitor
Queries for all objects in the cells intersecting the given AABB Uses a visitor for slightly better performance.
src/aabbgrid.rs:223
↓ 1 callersFunctionquery_setup_shape
(s: i32)
examples/shapegrid.rs:13
↓ 1 callersFunctionupdate_loop
(g: &mut Grid<Car, [f32; 2]>)
examples/collision_detector.rs:34
Methodclear
Clears the grid.
src/aabbgrid.rs:76
Methodclear
Clear all objects from the grid. Returns the objects and their positions.
src/grid.rs:200
Methoddefault
()
src/cell.rs:16
Methodenvelope
(&self)
examples/storage_bench.rs:51
Methodget
Returns a reference to the associated object and its position, using the handle.
src/aabbgrid.rs:161
Methodhandles
Iterate over all handles
src/aabbgrid.rs:151
Methodis_empty
Checks if the grid contains objects or not
src/aabbgrid.rs:265
Methodll
(&self)
examples/storage_bench.rs:23
Functionmain
()
examples/shapegrid.rs:45
Functionmain
()
examples/basic_example.rs:1
Functionmain
()
examples/collision_detector.rs:10
Functionmain
()
examples/storage_bench.rs:330
Functionmaintain
(c: &mut Criterion)
examples/storage_bench.rs:301
Methodmaintain
( &mut self, objects: &mut GridObjects<T, V2>, to_relocate: &mut Vec<CellObject<V2>>,
src/cell.rs:32
Methodmaintain_deterministic
Same as maintain() but deterministic by sorting the relocations
src/grid.rs:244
Methodnew
Creates an empty grid. The cell size should be about the same magnitude as your queries size.
src/aabbgrid.rs:68
Methodnew
Creates an empty grid. The cell size should be about the same magnitude as your queries size.
src/grid.rs:106
Methodnew
(cell_size: i32)
src/storage.rs:35
Methodnext
(&mut self)
src/aabbgrid.rs:290
Methodnext
(&mut self)
src/storage.rs:88
Methodobjects
Iterate over all objects
src/aabbgrid.rs:156
Methodobjects
Iterate over all objects
src/grid.rs:270
Functionquery
(c: &mut Criterion)
examples/storage_bench.rs:171
Methodquery
Queries for objects intersecting a given AABB.
src/aabbgrid.rs:176
Methodquery_aabb
(&self, ll_: V2, ur_: V2)
src/grid.rs:319
Methodquery_visitor
Queries for objects intersecting a given AABB. Uses a visitor for slightly better performance.
src/aabbgrid.rs:211
Methodremove
Removes an object from the grid.
src/aabbgrid.rs:134
Methodremove_maintain
Directly removes an object from the grid. This is equivalent to remove() then maintain() but is much faster (O(1)) # Example ```rust use flat_spatial
src/grid.rs:183
Methodset_aabb
Updates the aabb of an object.
src/aabbgrid.rs:97
Methodstorage
The underlying storage
src/aabbgrid.rs:171
Methodstorage
The underlying storage
src/grid.rs:302
Methodur
(&self)
examples/storage_bench.rs:27