package aliases
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
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