package aliases
In memory indexes
Install
Dune Dependency
Authors
Maintainers
Sources
0.0.5.tar.gz
sha256=34ef64e283322a6fa1e843efa7565c56035165c0efde1dbd7bf1f6ff104661d1
md5=d844a5c9fe0a06abfcc600a0085f45f6
doc/quadtree/Quadtree/index.html
Module Quadtree
init cell_size
creates a quadtree with cells not bigger than cell_size
elements. rect
is use to set the initial bounds. (defaul:(-90., 90.,-180.,180.)) dept
is use to bound the depth of the quadtree. (default:15)
val clear : 'a t -> unit
clear t
clears the quadtree t
The type of instruction to control a fold on a quadtree
Continue
keeps foldingStop
stop folding, returns the accumulatorNot_deeper width
stop folding until the quadtree cell is larger thanwidth
fold t rect f a
fold over bindings inside rect
. Use instr
to control the fold.
val insert : 'a t -> (float * float) -> 'a -> unit
insert t (x,y) v
inserts the value v
to the key (x,y).
val insert_tailrec : 'a t -> (float * float) -> 'a -> unit
Same has above, but tailrec.
val remove : 'a t -> (float * float) -> 'a -> unit
remove t (x,y) v
remove the bind for keys (x,y)
and value v
val depth : 'a t -> int
depth t
returns the depth of the quadtree t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>