Liking cljdoc? Tell your friends :D

thi.ng.geom.spatialtree


add-point*clj/s

(add-point* root p d)

Associates point with data in tree, recursively creates all required intermediate nodes.

Associates point with data in tree, recursively creates all required intermediate nodes.
sourceraw docstring

check-withclj/s

(check-with q isec? inside?)
source

delete-point*clj/s

(delete-point* root p)

Removes point from tree (if found) and prunes any resulting empty nodes. Returns given node (root).

Removes point from tree (if found) and prunes any resulting empty nodes.
Returns given node (root).
sourceraw docstring

lazy-select-withclj/s

(lazy-select-with q isec? inside?)

Same as select-with, only produces a lazy sequence of points.

Same as `select-with`, only produces a lazy sequence of points.
sourceraw docstring

lazy-select-with-shapeclj/s

(lazy-select-with-shape q s)
source

octreeclj/s

(octree {[x y z] :p [w h d] :size})
(octree [x y z] size)
(octree x y z size)
(octree x y z w h d)

Create a new octree root node with the given XYZ position & dimensions.

Create a new octree root node with the given XYZ position & dimensions.
sourceraw docstring

path-for-pointclj/s

(path-for-point root p)

Returns depth-first seq of nodes for given point.

Returns depth-first seq of nodes for given point.
sourceraw docstring

points-in-circle?clj/s

(points-in-circle? q c r)
source

points-in-sphere?clj/s

(points-in-sphere? q c r)
source

PTreeOpsclj/sprotocol

child-for-pointclj/s

(child-for-point _ p)

child-index-for-pointclj/s

(child-index-for-point _ p)

get-childrenclj/s

(get-children _)

make-child-for-pointclj/s

(make-child-for-point _ p d add-point?)

set-childclj/s

(set-child _ i c)

set-childrenclj/s

(set-children _ c)

set-pointclj/s

(set-point _ p d)

split-nodeclj/s

(split-node _)
source

quadtreeclj/s

(quadtree {[x y] :p [w h] :size})
(quadtree [x y] size)
(quadtree x y size)
(quadtree x y w h)

Create a new quadtree root node with the given XY position & dimensions.

Create a new quadtree root node with the given XY position & dimensions.
sourceraw docstring

select-withclj/s

(select-with q isec? inside?)
(select-with q isec? inside? acc)

Produces a vector of points in the tree within a given region. Uses two predicate fns to logically define the query region:

isec? : single-arg fn to check if the bounds of a tree node intersect the query region inside?: single-arg fn to check if a point lies within the region.

Produces a vector of points in the tree within a given region.
Uses two predicate fns to logically define the query region:

`isec?`  : single-arg fn to check if the bounds of a tree node
intersect the query region
`inside?`: single-arg fn to check if a point lies within the region.
sourceraw docstring

select-with-circleclj/s

(select-with-circle q c r)
source

select-with-shapeclj/s

(select-with-shape q s)
source

select-with-sphereclj/s

(select-with-sphere q c r)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close