Returns the number of nodes/cells in the quadtree.
Usage
# S4 method for Quadtree
n_cells(x, terminal_only = TRUE)
Value
a numeric
Arguments
x
a Quadtree
terminal_only
boolean; if TRUE (the default) only the terminal
nodes are counted. If FALSE, all nodes are counted, thereby giving the
total number of nodes in the tree.